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

Make default validators compatible with new gTLDs by no longer validating TLDs against a whitelist #6

Merged
merged 17 commits into from
Jul 21, 2014

Conversation

mwoc
Copy link
Collaborator

@mwoc mwoc commented Jul 21, 2014

Now that the gTLDs have hit the scene, the use case for validating a domain against a whitelist has become less practical.

Instead of the whitelist, this PR changes the default behaviour of the domain and email validators, to instead use the regexes that until now had been called domainRelaxed, emailRelaxed etc.

This also supports the use case in #5 - even though that was already solved some months ago with commit 8db3cf9

@mwoc
Copy link
Collaborator Author

mwoc commented Jul 21, 2014

Now ready for merge

@mwoc
Copy link
Collaborator Author

mwoc commented Jul 21, 2014

Sorry two more commits, @papandreou also suggested to get rid of the non-relaxed version of e-mail localpart validation as the non-relaxed variant isn't useful.

papandreou added a commit that referenced this pull request Jul 21, 2014
Make default validators compatible with new gTLDs by no longer validating TLDs against a whitelist
@papandreou papandreou merged commit a16f4f3 into master Jul 21, 2014
@mwoc mwoc deleted the feature/makeRelaxedDefault branch July 21, 2014 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants