-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore searchDomain for localhost and IP #80
Conversation
Will also backport to |
.eslintrc
Outdated
"extends": "groupon/es5", | ||
"rules": { | ||
"prefer-arrow-callback": 0 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. looks like we need to fix that in groupon/javascript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Porting: groupon/javascript#27
throw new Error('Invalid URI ' + JSON.stringify(hostname)); | ||
} | ||
if (searchDomain && canApplySearchDomain(hostname)) { | ||
return hostname + '.' + searchDomain + '.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to force searchDomain
to be absolute, or should we let people specify it as my.tld.
if they want it to be so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that would be a breaking change
489377f
to
8cfb230
Compare
Not sure how this stayed un-fixed for so long.