| Index: chrome/content/elemHideEmulation.js |
| =================================================================== |
| --- a/chrome/content/elemHideEmulation.js |
| +++ b/chrome/content/elemHideEmulation.js |
| @@ -132,17 +132,18 @@ |
| var match = propertySelectorRegExp.exec(pattern.selector); |
| if (!match) |
| continue; |
| var propertyExpression = match[2]; |
| var regexpString; |
| if (propertyExpression.length >= 2 && propertyExpression[0] == "/" && |
| propertyExpression[propertyExpression.length - 1] == "/") |
| - regexpString = propertyExpression.slice(1, -1); |
| + regexpString = propertyExpression.slice(1, -1) |
| + .replace("\\x7B", "{").replace("\\x7D", "}"); |
|
Wladimir Palant
2016/12/13 14:32:16
This will incorrectly replace \x7B1234 which is a
Felix Dahlke
2016/12/13 16:04:48
Done.
|
| else |
| regexpString = filterToRegExp(propertyExpression); |
| this.patterns.push({ |
| text: pattern.text, |
| regexp: new RegExp(regexpString, "i"), |
| prefix: pattern.selector.substr(0, match.index), |
| suffix: pattern.selector.substr(match.index + match[0].length) |