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
月份判断可以优化,月份不会是00月 原:/^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/ 现:/^[1-9]\d{7}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/
可以更细,把每个月的天数做个判断: /^[1-9]\d{7}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|30|31)|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))\d{3}$/
The text was updated successfully, but these errors were encountered:
感谢, 我测试一下
Sorry, something went wrong.
No branches or pull requests
月份判断可以优化,月份不会是00月
原:/^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/
现:/^[1-9]\d{7}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/
可以更细,把每个月的天数做个判断:
/^[1-9]\d{7}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|30|31)|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))\d{3}$/
The text was updated successfully, but these errors were encountered: