Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -117,7 +117,7 @@ |
let ret; |
let match = (text.indexOf("#") >= 0 ? Filter.elemhideRegExp.exec(text) : null); |
if (match) |
- ret = ElemHideBase.fromText(text, match[1], match[2], match[3], match[4], match[5]); |
+ ret = ElemHideBase.fromText(text, match[1], !!match[2], match[3], match[4], match[5]); |
else if (text[0] == "!") |
ret = new CommentFilter(text); |
else |
@@ -895,11 +895,12 @@ |
/** |
* Creates an element hiding filter from a pre-parsed text representation |
* |
- * @param {String} text same as in Filter() |
- * @param {String} domain domain part of the text representation (can be empty) |
- * @param {String} tagName tag name part (can be empty) |
- * @param {String} attrRules attribute matching rules (can be empty) |
- * @param {String} selector raw CSS selector (can be empty) |
+ * @param {String} text same as in Filter() |
+ * @param {String} domain domain part of the text representation (can be empty) |
+ * @param {Boolean} isException exception rule indicator |
+ * @param {String} tagName tag name part (can be empty) |
+ * @param {String} attrRules attribute matching rules (can be empty) |
+ * @param {String} selector raw CSS selector (can be empty) |
* @return {ElemHideFilter|ElemHideException|CSSPropertyFilter|InvalidFilter} |
*/ |
ElemHideBase.fromText = function(text, domain, isException, tagName, attrRules, selector) |