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

Regex for email seems incorrect? #307

Open
anickell opened this issue Sep 16, 2015 · 2 comments
Open

Regex for email seems incorrect? #307

anickell opened this issue Sep 16, 2015 · 2 comments
Labels

Comments

@anickell
Copy link

The current regex for email validation allows invalid TLDs. Example, [email protected] passes the validation, but single-character TLDs are invalid.

This creates an issue in our code, because our server side validation fails in that case, whereas we want the failure to happen in the client, when the user could have a more friendly experience.

@chiefGui
Copy link
Collaborator

Good point!

I am working on this. But I am going through a way to use a custom rule strategy for this kind of scenario

In applications of mine, for instance, the unique requirement for an e-mail is if it has the @ character.

@chiefGui chiefGui added the bug label Nov 23, 2015
@delciopolanco
Copy link

1+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants