[typo][fix] remove double quotes from regx
This commit is contained in:
parent
f54efe0aa8
commit
e795c08367
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ $.extend(frappe, {
|
|||
// Utility functions
|
||||
|
||||
function valid_email(id) {
|
||||
return /"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"/.test(id.toLowerCase());
|
||||
return /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/.test(id.toLowerCase());
|
||||
}
|
||||
|
||||
var validate_email = valid_email;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue