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

email regex verify has some problems #1

Open
asukaminato0721 opened this issue Oct 9, 2023 · 0 comments
Open

email regex verify has some problems #1

asukaminato0721 opened this issue Oct 9, 2023 · 0 comments

Comments

@asukaminato0721
Copy link

for example, [email protected] can't pass it.

var email_reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
if(!email_reg.test(email)){
res.writeHead(400, {message:"Invalid argument, Email invalid!"})
res.end()
return;

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