Fixed email address matching regex
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
|
||||
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 )
|
||||
|
Reference in New Issue
Block a user