From 0337342ca1e0ec8850b64674ed668d4efe06201a Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 16 May 2008 18:37:34 +0000 Subject: [PATCH] Compression fix --- js/behaviour.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/behaviour.js b/js/behaviour.js index d86df13b..ad011744 100644 --- a/js/behaviour.js +++ b/js/behaviour.js @@ -165,7 +165,9 @@ document.getElementsBySelector = function(selector) { continue; // Skip to next token } // Code to deal with attribute selectors - if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) { +/* Original reg expression /^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ + was replaced by new RegExp() cuz compressor fault */ + if (token.match(new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$'))) { var tagName = RegExp.$1; var attrName = RegExp.$2; var attrOperator = RegExp.$3; -- 2.30.2