AdguardTeam / AdguardTeam/FiltersCompiler

Some valid rules `[$domain=...]` with regex are treated as invalid

オープン
#241 コメント 0 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
Priority: P4
主要言語
JavaScript
スター
64
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

For example this one:
```adblock
! Error: "The $domain modifier is not allowed in a domain-specific rule" in the rule: "[$domain=/^i[a-z]*\.strmrdr[a-z0-9]+\..*/]#%#//scriptlet('set-constant', 'adscfg.enabled', 'false')"
[$domain=/^i[a-z]*\.strmrdr[a-z0-9]+\..*/]#%#//scriptlet('set-constant', 'adscfg.enabled', 'false')
```
https://github.com/AdguardTeam/FiltersRegistry/blob/a51b0d55e87ea3db5e7cbdcabc3c622b7cd83089/filters/filter_13_Turkish/diff.txt

It looks like that it's necessary to escape `[` and `]` even if it's valid in regexp and should works without escaping.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。