Skip to content
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 #81

Merged
merged 2 commits into from
Mar 29, 2018

Conversation

jkrems
Copy link
Collaborator

@jkrems jkrems commented Mar 29, 2018

Backport of 8cfb230

@@ -71,6 +71,18 @@ cleanProperty = (obj, value, key) ->
delete defaults.endpointDefaults
{ defaults, endpointDefaults }

IPv4 = /^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

escape the dots?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, nice catch. Might do it in the master branch.

Copy link
Collaborator Author

@jkrems jkrems Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context: I was considering going as far as only testing if the hostname starts with a digit so I'm not too concerned that the pattern might match unindented strings.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@dbushong dbushong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑

@jkrems jkrems merged commit 4760095 into 2.x Mar 29, 2018
@jkrems jkrems deleted the jk-less-aggressive-search-domain-2.x branch March 29, 2018 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants