AdguardTeam / FiltersCompiler

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

Add support for `$xmlprune` modifier #230

Open AdamWr opened 2 months ago

AdamWr commented 2 months ago

Currently rules with $xmlprune are marked as invalid:

! Error: "Unknown modifier: xmlprune=/MPD/Period[contains(@id,'ad-')]" in the rule: "/manifest.mpd$xmlprune=/MPD/Period[contains(@id\,'ad-')],domain=hulu.com"
/manifest.mpd$xmlprune=/MPD/Period[contains(@id\,'ad-')],domain=hulu.com

https://github.com/AdguardTeam/FiltersRegistry/blob/17793f7c17391a510a882160caf7b082546386bd/filters/filter_2_Base/diff.txt#L57-L58