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

Change email regex match to fullmatch #446

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

leonidguadalupe
Copy link
Contributor

@leonidguadalupe leonidguadalupe commented Aug 31, 2021

This PR is about the current method used to conditionally match user and domain regex to email.
currently, it's using match which unwarrantedly accepts entries if domain has special characters after .com

it currently accepts, john@voluptuous.com> or john!@voluptuous.org!@($*!

thus, we need to fullmatch the domain or user to avoid such entries and validate them properly.

This PR is about the current method used to conditionally match user and domain regex to email.
currently, it's using match which wrongfully accepts entries if domain has special characters after .com

it currently accepts, john@voluptuous.com> or john!@voluptuous.org!@($*!

thus, we need to fullmatch the domain or user to avoid such entries and validate them properly.
@alecthomas alecthomas merged commit e5e3b51 into alecthomas:master Aug 31, 2021
@alecthomas
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants