Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/prefer-single-replace.
Anders Kaseorg12d23b5af51e
diff --git a/web/src/upload.ts b/web/src/upload.tsindex cf48659c51d..71e26a1bd82 100644--- a/web/src/upload.ts+++ b/web/src/upload.ts@@ -665,7 +665,7 @@ export function setup_upload(config: Config): Uppy<Meta, TusBody> {}}- const filtered_filename = upload_result.filename.replaceAll("[", "").replaceAll("]", "");+ const filtered_filename = upload_result.filename.replaceAll(/[[\]]/g, "");let syntax_to_insert = "[" + filtered_filename + "](" + upload_result.url + ")";if (is_supported_image_type(file.type) || is_supported_audio_type(file.type)) {syntax_to_insert = "!" + syntax_to_insert;