Browse Source

case insensitive e-mail validation

pull/373/head
t.adamski 11 years ago
parent
commit
fede04934b
1 changed files with 1 additions and 1 deletions
  1. 2
      src/modules/behavior/form.js

2
src/modules/behavior/form.js

@ -638,7 +638,7 @@ $.fn.form.settings = {
},
email: function(value){
var
emailRegExp = new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?")
emailRegExp = new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", "i")
;
return emailRegExp.test(value);
},

Loading…
Cancel
Save