-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
test@test-.com is showing as valid #828
Comments
Trailing |
Here is the link and comment for RFC 883: The labels must follow the rules for ARPANET host names. They must |
Thanks (I updated your link with the page number). |
RFC 883 is Obsoleted by: 1034, 1035 RFC 883 is not an Internet Standard, it is obsolete and historic. http://tools.ietf.org/html/rfc1796 For a better understanding of the Internet Standards process: The W3C's August 6, 2013 HTML5 specifications for email is:
I'd be happy to submit a PR using the above proposed regular expression if you'd like, just let me know. Thanks for an awesome validation library! |
Ping @scottgonzalez since the original rule is based off of your code |
I think email validation is a total mess and the sanest thing to do today is use the HTML5 validation rules. A more detailed response can be seen in a Stack Overflow response I wrote earlier this year. |
Switched to using the HTML5 regex. |
in emails2 validation domain is accepted ends with '-'. Please fix the issue.
The text was updated successfully, but these errors were encountered: