Make the regex that removes trailing commas in the huddle recipient box on blur more robust

(imported from commit ff71c802c5590a96c6649aa9a5e7c841bed82e1f)
This commit is contained in:
Zev Benjamin 2012-11-02 19:54:43 -04:00
parent 4396f1bf35
commit 7b6eb243ed
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ exports.initialize = function () {
$( "#huddle_recipient" ).blur(function (event) { $( "#huddle_recipient" ).blur(function (event) {
var val = $(this).val(); var val = $(this).val();
$(this).val(val.replace(/[,;] *$/, '')); $(this).val(val.replace(/\s*[,;]\s*$/, ''));
}); });
composebox_typeahead.update_autocomplete(); composebox_typeahead.update_autocomplete();