Skip to content
New issue

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

电话正则是否不够严谨 #324

Open
jiangkaifree opened this issue Sep 10, 2024 · 1 comment
Open

电话正则是否不够严谨 #324

jiangkaifree opened this issue Sep 10, 2024 · 1 comment

Comments

@jiangkaifree
Copy link
Contributor

image

const fixedPhoneRegex = /^\d{3}-\d{7,8}$|^\d{4}-\d{7,8}$/;

@jiangkaifree
Copy link
Contributor Author

前面的区号应该 3位或者4 位,后面的电话号应该是7 位或者8位。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant