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

MACF-88: Allow spaces and enter to separate emails #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pcandia
Copy link
Contributor

@pcandia pcandia commented Oct 7, 2024

No description provided.

@pcandia pcandia self-assigned this Oct 7, 2024
@@ -352,7 +352,7 @@ define(function(require) {
return re.test(email);
},
getRecipients = function() {
var list = $('#recipients_list', vmbox_html).val().replace(/\s+/g, '').split(',');
var list = $('#recipients_list', vmbox_html).val().replace(/,\s+/g,",").split(/[\n,\s+]/);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to add all possible separation characters to the replace regex, and split only by commas. Also, according to the ticket, there should be an error message if the e-mails are invalid.

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