backbone.validation icon indicating copy to clipboard operation
backbone.validation copied to clipboard

Regex for email seems incorrect?

Open anickell opened this issue 9 years ago • 2 comments

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.

anickell avatar Sep 16 '15 16:09 anickell

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 avatar Nov 23 '15 14:11 chiefGui

1+

delciopolanco avatar Sep 12 '16 14:09 delciopolanco