We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7159a commit 7da17f7Copy full SHA for 7da17f7
src/definitions/behaviors/form.js
@@ -1315,7 +1315,7 @@ $.fn.form = function(parameters) {
1315
// cast to string avoiding encoding special values
1316
value = (value === undefined || value === '' || value === null)
1317
? ''
1318
- : (settings.shouldTrim) ? String(value + '').trim() : String(value + '')
+ : (settings.shouldTrim && rule.shouldTrim !== false) || rule.shouldTrim ? String(value + '').trim() : String(value + '')
1319
;
1320
return ruleFunction.call(field, value, ancillary, $module);
1321
}
0 commit comments