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

Support Validating Multiple Emails in a Single String #73

Open
sshaw opened this issue Jan 12, 2021 · 1 comment
Open

Support Validating Multiple Emails in a Single String #73

sshaw opened this issue Jan 12, 2021 · 1 comment

Comments

@sshaw
Copy link

sshaw commented Jan 12, 2021

Often times one allows a user to enter multiple emails separated by a comma or newline. It would be nice if this library supported validating these. Currently doing this by hand with ValidatesEmailFormatOf.validate_email_format.

@alexdunae
Copy link
Contributor

Interesting... I just closed a PR that was proposing this since I thought it was a pretty niche requirement.

My instinct would be to create a manual validation instead, letting you split on whatever characters your application needs and handling duplication etc... Even more so considering the application will need to split and iterate on the emails anyways.

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

2 participants