summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipients_input.js2
-rw-r--r--web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
index 54c8fed9..3e80b49e 100644
--- a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
+++ b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
@@ -136,7 +136,7 @@ define([
};
this.extractInvalidAddresses = function(rawAddresses) {
- return rawAddresses.replace(emailAddressMatch, '').split(' ');
+ return rawAddresses.replace(emailAddressMatch, '').split(/[ ,;]/);
};
this.init = function () {
diff --git a/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js b/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
index 1656a83a..29194ee8 100644
--- a/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
+++ b/web-ui/test/spec/mail_view/ui/recipients/recipients_input.spec.js
@@ -178,7 +178,7 @@ describeComponent('mail_view/ui/recipients/recipients_input',function () {
});
it('displays it as an invalid address token when cannot parse', function() {
- this.$node.val('invalid_format email@example.com');
+ this.$node.val('invalid_format, email@example.com');
this.$node.trigger(blurEvent);
expect(blurEvent.preventDefault).toHaveBeenCalled();