Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -721,17 +721,17 @@ |
* Creates a RegExp filter from its text representation |
* @param {string} text same as in Filter() |
* @return {Filter} |
*/ |
RegExpFilter.fromText = function(text) |
{ |
let blocking = true; |
let origText = text; |
- if (text.indexOf("@@") == 0) |
+ if (text[0] == "@" && text[1] == "@") |
{ |
blocking = false; |
text = text.substr(2); |
} |
let contentType = null; |
let matchCase = null; |
let domains = null; |