AdguardTeam / AdguardTeam/AGLint
Add new rule for detecting unnecessary escaped characters in regexp
未关闭
Priority: P4
T: Linter rule
- 主要语言
- TypeScript
- 星标
- 70
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
描述
Sometimes some characters can be escaped when it's not necessary.
For example it's not necessary to escape `+` in:
```adblock
/\/[a-z0-9]{12}\/[a-zA-Z0-9\/\+]{1,10}$/
```
so it could be rewritten as:
```adblock
/\/[a-z0-9]{12}\/[a-zA-Z0-9\/+]{1,10}$/
```
贡献指南
评估
这个 Issue 还没有评估数据。