thedersen / backbone.validation

A validation plugin for Backbone.js that validates both your model as well as form input
thedersen.com/projects/backbone-validation
MIT License
1.32k stars 301 forks source link

Regex for email seems incorrect? #307

Open anickell opened 9 years ago

anickell commented 9 years ago

The current regex for email validation allows invalid TLDs. Example, anickell@gmail.c 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 commented 8 years ago

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.

delciopolanco commented 8 years ago

1+