mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Replace $.map with _.map
(imported from commit 97c7a6612d8d56d19f8650db0ea8906afc0f20ef)
This commit is contained in:
@@ -218,7 +218,7 @@ exports.normalize_recipients = function (recipients) {
|
||||
// Converts a string listing emails of message recipients
|
||||
// into a canonical formatting: emails sorted ASCIIbetically
|
||||
// with exactly one comma and no spaces between each.
|
||||
recipients = $.map(recipients.split(','), $.trim);
|
||||
recipients = _.map(recipients.split(','), $.trim);
|
||||
recipients = _.filter(recipients, function (s) { return s.length > 0; });
|
||||
recipients.sort();
|
||||
return recipients.join(',');
|
||||
|
||||
Reference in New Issue
Block a user