so email is yay
This commit is contained in:
parent
04a26fb599
commit
d9af8eda54
1 changed files with 2 additions and 1 deletions
|
@ -698,7 +698,8 @@ function checkStringLength(str, min, max) {
|
||||||
function validateEmail(email) {
|
function validateEmail(email) {
|
||||||
|
|
||||||
// The regex
|
// The regex
|
||||||
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
|
var re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,48})+$/;
|
||||||
|
// is of fix
|
||||||
|
|
||||||
// Test it (which returns true or false)
|
// Test it (which returns true or false)
|
||||||
return re.test(email);
|
return re.test(email);
|
||||||
|
|
Reference in a new issue