so email is yay

This commit is contained in:
flash 2015-06-19 15:42:53 -04:00
parent 04a26fb599
commit d9af8eda54

View file

@ -698,7 +698,8 @@ function checkStringLength(str, min, max) {
function validateEmail(email) {
// 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)
return re.test(email);