AdguardTeam / FiltersCompiler

A tool that compiles & validates filters
GNU Lesser General Public License v3.0
52 stars 12 forks source link

Exceptions with $important modifier in uBO filter lists are invalid #200

Closed superlex closed 9 months ago

superlex commented 10 months ago

Unlike AdGuard, in uBO $important modifier applies only to network block filters: https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#important

FiltersCompiler should ignore them or remove $important modifier from these rules, otherwise they will be considered invalid.

Example: @@||connectivitycheck.gstatic.com^$important from https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt