app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.9.3 vs app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.9.5
- old
+ new
@@ -636,10 +636,10 @@
empty: function(value) {
return !(value === undefined || '' === value);
},
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);
},
length: function(value, requiredLength) {
return (value !== undefined)