AdguardTeam / FiltersCompiler

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

Valid `[$url]` rule with regexp considered as invalid #237

Open Alex-302 opened 1 week ago

Alex-302 commented 1 week ago
Error: "'url' is not valid modifier" in the rule: "[$url=/^https?:\/\/\d{1\,3}\.\d{1\,3}\.\d{1\,3}\.\d{1\,3}\/.*(\?|&)__cpo=aHR0c/]#%#//scriptlet('set-constant', '__Cpn.prototype.showAds', 'false')"
Error: "'url' is not valid modifier" in the rule: "[$url=/^https?:\/\/\d{1\,3}\.\d{1\,3}\.\d{1\,3}\.\d{1\,3}\/.*(\?|&)__cpo=aHR0c/]#%#//scriptlet('abort-on-stack-trace', 'addEventListener', '/attachEvent[\s\S]*?Popup[\s\S]*?register/')"