projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd3917
)
Compression fix
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 16 May 2008 18:37:34 +0000
(18:37 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 16 May 2008 18:37:34 +0000
(18:37 +0000)
js/behaviour.js
patch
|
blob
|
history
diff --git
a/js/behaviour.js
b/js/behaviour.js
index d86df13b2c924e361f6088fb08432ece5bade5fb..ad0117447f8c10c8b5fed2b6648ac57cdd119df8 100644
(file)
--- 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;