From d43f732a2c6308a1ecb5d44e2cfca7cbe383c058 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 30 Mar 2011 19:38:39 +0200 Subject: [PATCH] Firefox trunk no longer supports calling RegExp, properly use test and exec --- build/js/ox.ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;