X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=js%2Fbehaviour.js;h=ad0117447f8c10c8b5fed2b6648ac57cdd119df8;hb=6453c26ae71a40c195dc5adb51dde5ca4cebff84;hp=d86df13b2c924e361f6088fb08432ece5bade5fb;hpb=73f7e2f83657966f999078917cf9404ec5d65fc3;p=fa-stable.git 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;