Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -572,17 +572,17 @@ RegExpFilter.fromText = function(text) |
let thirdParty = null; |
let collapse = null; |
let options; |
let match = (text.indexOf("$") >= 0 ? Filter.optionsRegExp.exec(text) : null); |
if (match) |
{ |
options = match[1].toUpperCase().split(","); |
text = match.input.substr(0, match.index); |
- for each (let option in options) |
+ for (let option of options) |
{ |
let value = null; |
let separatorIndex = option.indexOf("="); |
if (separatorIndex >= 0) |
{ |
value = option.substr(separatorIndex + 1); |
option = option.substr(0, separatorIndex); |
} |
@@ -795,17 +795,17 @@ ElemHideBase.fromText = function(text, d |
{ |
if (tagName == "*") |
tagName = ""; |
let id = null; |
let additional = ""; |
if (attrRules) { |
attrRules = attrRules.match(/\([\w\-]+(?:[$^*]?=[^\(\)"]*)?\)/g); |
- for each (let rule in attrRules) { |
+ for (let rule of attrRules) { |
rule = rule.substr(1, rule.length - 2); |
let separatorPos = rule.indexOf("="); |
if (separatorPos > 0) { |
rule = rule.replace(/=/, '="') + '"'; |
additional += "[" + rule + "]"; |
} |
else { |
if (id) |