Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Regex for email validation allows invalid emails #410

Open
cwisdo opened this issue Nov 25, 2024 · 1 comment
Open

Regex for email validation allows invalid emails #410

cwisdo opened this issue Nov 25, 2024 · 1 comment

Comments

@cwisdo
Copy link

cwisdo commented Nov 25, 2024

In testing, I've found that:

validators.email("stephen @example.com") == True
validators.email("step;hen@example.com") == True

@yozachar
Copy link
Collaborator

yozachar commented Nov 29, 2024

@cwisdo it seems, spaces and ; a valid characters for an email's username part.

see: https://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-an-email-address

There's a bug though. Only email address that start with s are allowed to have space.

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

No branches or pull requests

2 participants