-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feature request: multiple emails #359
Comments
Why not just |
var validator = require('validator');
var emails = '[email protected], [email protected]'
var invalid_emails = emails.split(/, ?/).filter(function (email) {
return !validator.isEmail(email);
});
if (invalid_emails.length) {
// ...
} |
I just did something similar, but I thought it is general needs and this is the point of Validator. By the way, I also need to restrict the maximal number of emails, which is maybe too special problem. |
Having a helper to deal with multiple email addresses would be great, allow Checking a maximal amount of addresses shouldn't be in the same helper I 2015-02-07 16:23 GMT+01:00 Skalkaz [email protected]:
Cordialement, M. Ambroise Dhenain. |
Please implement comma separated email addresses.
The text was updated successfully, but these errors were encountered: