backbone.validation
backbone.validation copied to clipboard
Regex for email seems incorrect?
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.
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.
1+