FiltersCompiler icon indicating copy to clipboard operation
FiltersCompiler copied to clipboard

Invalid conversion to uBO syntax - broken regexp in :matches-path()

Open Alex-302 opened this issue 3 weeks ago • 0 comments

Broken regexp in :matches-path() - rexexp is split into two parts and added to different parts of the rule

Image

Original

[$path=/\/[0-9A-Z_a-z]+\/status\/\d+/]x.com,twitter.com###layers[style="z-index: 1;"]:has(div[role="dialog"] a[href="/i/premium_sign_up"][style])

Converted to uBO

+\/status\/\d+/]x.com,twitter.com##:matches-path(/\/[0-9A-Z_a-z)#layers[style="z-index: 1;"]:has(div[role="dialog"] a[href="/i/premium_sign_up"][style])

Alex-302 avatar Oct 19 '25 13:10 Alex-302