Ox.isValidEmail: handle new TLDs
This commit is contained in:
parent
835122967f
commit
cec3e63880
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ Ox.isValidEmail <f> Tests if a string is a valid e-mail address
|
|||
false
|
||||
@*/
|
||||
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);
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
Loading…
Reference in a new issue