Merge pull request #6 from kamil0/patch-1

so email is yay
This commit is contained in:
flash 2015-06-19 21:43:32 +02:00
commit d731728e89

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);