-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
E-Mail Validation doesn't cover new TLDs #450
Comments
Your email address is valid according to the library: > validator.isEmail('[email protected]');
true The |
@chriso Thanks for the explanation and the reference to ReDoS Attacks (first time I heard this, but definitely something I'll keep in mind in the future). The reason I assumed that there's a bug in validator.js is because my E-Mail was rejected by sails.js and I tracked the validation code all the way down to validator.js where I looked for some useful code regarding E-Mail validation and then I came across the RegExp. I later tested my E-Mail Address directly against validator.js and I can approve that there must be a problem in a higher level dependency of sails. Thank you anyway for the explanation and the time to teach me something new. I really appreciate that! |
@einfallstoll no problem. Support for gTLDs was added to this library at some stage, so I bet one of the dependencies is using an older version. |
The current RegEx for E-Mails doesn't work for my E-Mail Address which included a new TLD
.solutions
.It does work with the RegEx found here: http://emailregex.com
The text was updated successfully, but these errors were encountered: