We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原始正则:
/^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/
正则中的第二个定位符(^)是不必要的,可以删除,保留一个即可:
^
/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/
通过 regexp/no-useless-assertions 检查发现
The text was updated successfully, but these errors were encountered:
perf: 修复座机正则 表达式冗余 (any86#319)
4f860c4
No branches or pull requests
原始正则:
正则中的第二个定位符(
^
)是不必要的,可以删除,保留一个即可:The text was updated successfully, but these errors were encountered: