tsurlfilter icon indicating copy to clipboard operation
tsurlfilter copied to clipboard

Invalid rule in test cases

Open scripthunter7 opened this issue 2 years ago • 1 comments

If I understand correctly, the following rule is invalid in uBO syntax:

example.org##+js(setTimeout-defuser.js, [native code], 8000):matches-path(/page)

One test case uses this rule: https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/tsurlfilter/test/rules/rule-converter.test.ts#L569

Reference:

  • from https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg

    subject: Can be a plain CSS selector, or a procedural cosmetic filter

scripthunter7 avatar Oct 04 '22 09:10 scripthunter7

related https://github.com/uBlockOrigin/uBlock-issues/issues/2465

scripthunter7 avatar Jan 23 '23 22:01 scripthunter7