diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index f219ddb8..d1d7a151 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -3262,7 +3262,7 @@ requires function autovalidateFunction(value) { var regexp = new RegExp(self.options.autovalidate); return $.map(value.split(''), function(v) { - return regexp(v) ? v : null; + return regexp.test(v) ? v : null; }).join(''); } @@ -3350,7 +3350,7 @@ requires function autovalidateFunction(value) { var length = value.length; return $.map(value.toLowerCase().split(''), function(v, i) { - if (new RegExp(self.options.autocorrect)(v)) { + if (new RegExp(self.options.autocorrect).test(v)) { return v; } else { return null; @@ -5803,7 +5803,7 @@ requires function autocorrect(value) { var length = value.length; return $.map(value.toLowerCase().split(''), function(v, i) { - if (new RegExp(self.options.autocorrect)(v)) { + if (new RegExp(self.options.autocorrect).test(v)) { return v } else { return null;