brave / brave/adblock-rust

`domain` regex syntax

Open
#314 0 comments 1 reaction 1 assignee Claimed by @antonok-edm View on GitHub
uBO-parity
Dominant language
Rust
Stars
2.8k
Forks
250
Avg merge
1d 16h
Merged PRs (30d)
6

Description

uBO recently supports `domain` with a regex, e.g.:

```
@@*$ghide,domain=/img[a-z]{3,5}\.buzz/
||video.twimg.com/ext_tw_video/*/*.m3u8$domain=/^i[a-z]*\.strmrdr[a-z]+\..*/
```

These rules are currently parsed by adblock-rust but are treated as if the regex part is a domain.

This also causes issues for content-blocking syntax conversion, so it should be disallowed there.

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.