FiltersCompiler
FiltersCompiler copied to clipboard
Our current exclusion does not remove `! Redirect:` directive
To reproduce it:
- Add my filter via
@includeto any template of the filter. For instance, Dandelion Sprout Annoyances
@include "https://raw.githubusercontent.com/zloyden/fox/master/123.txt" /exclude="../../exclusions.txt"
- Run the filter build
- It does not work, but it should work due to exclusion
Redirect:
Please also check that this Regex should also apply and remove the redirect directive.
About regex - text /^\!\s*(R|r)edirect:/ without Redirect: and redirect:
Well, the proper reaction to redirect directive should be failing the build completely
The point is that when this happens we should react accordingly and change the FiltersRegistry
Should we revert https://github.com/AdguardTeam/FiltersRegistry/pull/638 and just remove redirect: exclusions?