From 131a032da661f2e83b91a9af3bb48203666b9b9d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 30 Aug 2011 21:36:55 +0000 Subject: [PATCH] Fix regexp - no match() function, switched to test() --- etemplate/js/et2_core_arrayMgr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_arrayMgr.js b/etemplate/js/et2_core_arrayMgr.js index cd3e46462f..a2397c9d74 100644 --- a/etemplate/js/et2_core_arrayMgr.js +++ b/etemplate/js/et2_core_arrayMgr.js @@ -207,7 +207,7 @@ var et2_arrayMgr = Class.extend({ if (checkVal.charAt(0) == '/') { return (new RegExp(checkVal.substr(1, checkVal.length - 2))) - .match(val) ? true : false; + .test(val) ? true : false; } // Otherwise check for simple equality