Skip to content

Commit

Permalink
allow the 'not' pseudoclass in cosmetic filters (#184)
Browse files Browse the repository at this point in the history
* feat: allow the 'not' pseudoclass in cosmetic filters
* docs: update CHANGELOG
  • Loading branch information
remusao authored Jul 3, 2019
1 parent 588880c commit 56d1460
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

*not released yet*

* allow the 'not' pseudoclass in cosmetic filters [#184](https://github.com/cliqz-oss/adblocker/pull/184)
* switch from `tldts` to `tldts-experimental` package [#183](https://github.com/cliqz-oss/adblocker/pull/183)
* add `bootstrap` to root package.json
* switch from `tldts` to `tldts-experimental` (faster, smaller bundles)
Expand Down
1 change: 0 additions & 1 deletion packages/adblocker/src/filters/cosmetic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ export default class CosmeticFilter implements IFilter {
fastStartsWithFrom(line, 'matches-css', indexAfterColon) ||
fastStartsWithFrom(line, 'matches-css-after', indexAfterColon) ||
fastStartsWithFrom(line, 'matches-css-before', indexAfterColon) ||
fastStartsWithFrom(line, 'not', indexAfterColon) ||
fastStartsWithFrom(line, 'properties', indexAfterColon) ||
fastStartsWithFrom(line, 'subject', indexAfterColon) ||
fastStartsWithFrom(line, 'xpath', indexAfterColon)
Expand Down

0 comments on commit 56d1460

Please sign in to comment.