app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.11.0 vs app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.12.0

- old
+ new

@@ -358,10 +358,10 @@ // takes validation rule and returns whether field passes rule rule: function(field, validation) { var $field = module.get.field(field.identifier), type = validation.type, - value = $field.val() + '', + value = $.trim($field.val() + ''), bracketRegExp = /\[(.*?)\]/i, bracket = bracketRegExp.exec(type), isValid = true, ancillary,