From: Janusz Dobrowolski Date: Fri, 16 May 2008 18:37:34 +0000 (+0000) Subject: Compression fix X-Git-Tag: v2.4.2~19^2~2066 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0337342ca1e0ec8850b64674ed668d4efe06201a;p=fa-stable.git Compression fix --- 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;