Ox.isValidEmail: handle new TLDs

This commit is contained in:
rlx 2016-01-16 17:50:39 +05:30
parent 835122967f
commit cec3e63880

View file

@ -100,7 +100,7 @@ Ox.isValidEmail <f> Tests if a string is a valid e-mail address
false false
@*/ @*/
Ox.isValidEmail = function(string) { Ox.isValidEmail = function(string) {
return !!/^[0-9A-Z\.\+\-_]+@(?:[0-9A-Z\-]+\.)+[A-Z]{2,6}$/i.test(string); return !!/^[0-9A-Z\.\+\-_]+@(?:[0-9A-Z\-]+\.)+[A-Z]{2,64}$/i.test(string);
}; };
/*@ /*@