mirror of https://github.com/zulip/zulip.git
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:
parent
4396f1bf35
commit
7b6eb243ed
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue