AdguardTeam / FiltersCompiler

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

Add internal escaping for special characters in regular expressions for better compatibility with uBO #179

Open Alex-302 opened 1 year ago

Alex-302 commented 1 year ago

https://github.com/AdguardTeam/FiltersRegistry/pull/802/files#diff-eafb4aff19bc57c3106afe5e1d4aef0b6422e0de242745e6e94f7d5733ab1cc1R4504 The rules from the filters, which use uBO syntax:

Error: "Unknown modifier: all" in the rule: "/(\.|//|^)1xslot\d{5,}\.com(/|$)/$all,~inline-font,~inline-script"
Error: "Unknown modifier: all" in the rule: "/(\.|//|^)1xslot\d{5,}\.com(/|$)/$all"