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

Adding forward slash to list of prohibited domain characters #142

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

pdoulatshahi
Copy link
Contributor

Currently, the code allows for a forward slash in the email address domain, but this should be a prohibited character. This pull request addresses that.

How to test

If you set the changed PROHIBITED_DOMAIN_CHARACTERS_REGEX constant in ValidEmail2::Address back to its current value:

PROHIBITED_DOMAIN_CHARACTERS_REGEX = /[+!_\s]/

you will see that the new test I have added fails.

@micke micke merged commit b126fdd into micke:master Dec 3, 2019
@micke
Copy link
Owner

micke commented Dec 3, 2019

Thanks for both of your PRs! I will cut a release right away

@pdoulatshahi
Copy link
Contributor Author

Thank you @micke!

@micke
Copy link
Owner

micke commented Dec 3, 2019

@pdoulatshahi i just pushed 3.1.3 to rubygems!

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