Browse Source

Merge pull request #373 from tmszdmsk/master

Case insensitive e-mail validation
pull/381/head
Jack Lukic 11 years ago
parent
commit
cc0a0e86f2
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){ email: function(value){
var 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); return emailRegExp.test(value);
}, },

Loading…
Cancel
Save