Fix regexp - no match() function, switched to test()

This commit is contained in:
Nathan Gray 2011-08-30 21:36:55 +00:00
parent 8a632c723a
commit 131a032da6

View File

@ -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