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

fix mail regular #5

Merged
merged 1 commit into from
May 11, 2024
Merged

fix mail regular #5

merged 1 commit into from
May 11, 2024

Conversation

Tech--man
Copy link

正则1:/^\w{3,}(.\w+)*@[A-z0-9]+(.[A-z]{2,5}){1,2}$/
正则2: /^([A-Za-z0-9_-.\u4e00-\u9fa5])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,8})$/

正则1不够全面,例如[email protected]正常格式邮箱会不通过,故替换成第二条正则

@YunaiV YunaiV merged commit 31bbeaf into yudaocode:master May 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants