AdguardTeam / AdguardTeam/AGLint

Add new rule for detecting unnecessary escaped characters in regexp

未关闭
#244 0 条评论 1 个 reaction 已指派 1 人 已被 @maximtop 认领 在 GitHub 查看
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。