diff --git a/zephyr/static/js/composebox_typeahead.js b/zephyr/static/js/composebox_typeahead.js index 4b34ad1b6b..19ccc43ae8 100644 --- a/zephyr/static/js/composebox_typeahead.js +++ b/zephyr/static/js/composebox_typeahead.js @@ -132,7 +132,7 @@ exports.initialize = function () { $( "#huddle_recipient" ).blur(function (event) { var val = $(this).val(); - $(this).val(val.replace(/[,;] *$/, '')); + $(this).val(val.replace(/\s*[,;]\s*$/, '')); }); composebox_typeahead.update_autocomplete();