Merge pull request #31 from opensaucesystems/patch-1
Fix email validation regexp to allow gTLDs
This commit is contained in:
commit
fd07112113
|
@ -45,7 +45,7 @@ var activeAjaxRequests = 0;
|
|||
var removeFolderRequestCount = 0;
|
||||
|
||||
// Email validation regexp
|
||||
var emailRE = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i;
|
||||
var emailRE = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i;
|
||||
|
||||
|
||||
/* This function enables the execution of a wrapper function just before the
|
||||
|
|
Loading…
Reference in a new issue