AdguardTeam / AdguardTeam/FiltersCompiler

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

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
64
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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

Image

Original

```adblock
[$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

```adblock
+\/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])
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.