mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
eslint: Fix unicorn/prefer-string-replace-all.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fe54df0b01
commit
54f90e41c0
@@ -224,7 +224,9 @@ export function start(msg_type, opts) {
|
||||
compose_state.topic(opts.topic);
|
||||
|
||||
// Set the recipients with a space after each comma, so it looks nice.
|
||||
compose_state.private_message_recipient(opts.private_message_recipient.replace(/,\s*/g, ", "));
|
||||
compose_state.private_message_recipient(
|
||||
opts.private_message_recipient.replaceAll(/,\s*/g, ", "),
|
||||
);
|
||||
|
||||
// If the user opens the compose box, types some text, and then clicks on a
|
||||
// different stream/topic, we want to keep the text in the compose box
|
||||
|
||||
Reference in New Issue
Block a user