-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
False positive for .email() validation with sub-domain present? #2154
Comments
Nope, not intentional. Thanks for reporting. It's hard to find a regex that pleases everyone, but this is a pretty glaring flaw. |
Here's another valid example I noticed today, that can be common in the US. |
Is anyone else working on this, if not I'd be happy to pick it up! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've come across what I believe to be some false positives with the string
.email()
validation, where it doesn't appear to like subdomains. Here is a simple repro:which produces:
This is flagging up validation errors in my project for real email addresses resembling the 4th entry in the above repro.
I can see from the code that this behavior is driven by a rather formidable looking regexp; please could you clarify - is a validation failure on an address such as
[email protected]
intentional? Thanks!The text was updated successfully, but these errors were encountered: