forked from Botanical/BotanJS
Fixed email address matching regex
This commit is contained in:
parent
5e48868fa8
commit
61049939fb
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
var validateMail = function ( str )
|
var validateMail = function ( str )
|
||||||
{
|
{
|
||||||
return v_match( str, /^[\_]*([a-z0-9]+(\.|\_*)?)+@([a-z][a-z0-9\-]+(\.|\-*\.))+[a-z]{2,6}$/ );
|
return v_match( str, /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i );
|
||||||
};
|
};
|
||||||
|
|
||||||
var validateURL = function ( str )
|
var validateURL = function ( str )
|
||||||
|
Loading…
Reference in New Issue
Block a user