| Index: lib/filterClasses.js |
| =================================================================== |
| --- a/lib/filterClasses.js |
| +++ b/lib/filterClasses.js |
| @@ -527,17 +527,17 @@ |
| * @return {boolean} true in case of the filter being active |
| */ |
| isActiveOnDomain(docDomain, sitekey) |
| { |
| // Sitekeys are case-sensitive so we shouldn't convert them to |
| // upper-case to avoid false positives here. Instead we need to |
| // change the way filter options are parsed. |
| if (this.sitekeys && |
| - (!sitekey || this.sitekeys.indexOf(sitekey.toUpperCase()) < 0)) |
| + (!sitekey || !this.sitekeys.includes(sitekey.toUpperCase()))) |
| { |
| return false; |
| } |
| let {domains} = this; |
| // If no domains are set the rule matches everywhere |
| if (!domains) |