AdguardTeam / AdguardTeam/FiltersCompiler

Invalid conversion to uBO syntax - `[$path]`

Offen
#264 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
JavaScript
Sterne
64
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Matching "the main page only" `[$path]` should be converted to `:matches-path(/^/$/)`
uBO's example: https://github.com/gorhill/ublock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg:~:text=%3Amatches%2Dpath(/%5E/%24/)

Original
```adblock
[$path]fontanka.ru#?#.gridContainer > div[class*="grid"]:has(> section[class^="baseBlock_"] > a[href]:contains(/^(Новости компаний|Фонтанка PRO)$/))
```

Converted to uBO:
```adblock
fontanka.ru#?#:matches-path(/^/$/) .gridContainer > div[class*="grid"]:has(> section[class^="baseBlock_"] > a[href]:contains(/^(Новости компаний|Фонтанка PRO)$/))
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.