AdguardTeam / VscodeAdblockSyntax

Comprehensive extension to manage Adblock Syntax in VSCode: syntax highlighter, linter and much more. Available on the VSCode Marketplace.
https://marketplace.visualstudio.com/items?itemName=adguard.adblock
MIT License
70 stars 8 forks source link

`removeparam` modifier should be improved #65

Closed scripthunter7 closed 8 months ago

scripthunter7 commented 1 year ago

See

$removeparam=/^kk=\w{6,}-\w{10,}-\w{5,}$/
Show screenshot ![image](https://github.com/AdguardTeam/VscodeAdblockSyntax/assets/57285466/5e669b82-a1ac-44c3-986d-859497f41d49)

Reference: https://github.com/AdguardTeam/FiltersCompiler/issues/149

scripthunter7 commented 8 months ago

https://adguardteam.github.io/KnowledgeBase/general/ad-filtering/create-own-filters/#removeparam-modifier

Do not forget to escape special characters like ,, / and $ in the regular expressions. Use \ character for that purpose. For example, an escaped comma should look like this: \,.