Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
shared: Avoid using all replaceAll.
Austin Riba7dbd092afa9b
diff --git a/static/shared/js/internal_url.js b/static/shared/js/internal_url.jsindex 5eeabdfc10c..45c51485fbb 100644--- a/static/shared/js/internal_url.js+++ b/static/shared/js/internal_url.js@@ -26,7 +26,10 @@ export function stream_id_to_slug(stream_id, maybe_get_stream_name) {// The name part of the URL doesn't really matter, so we try to// make it pretty.- name = name.replaceAll(" ", "-");++ // TODO: Convert this to replaceAll once mobile no longer supports+ // browsers that don't have it.+ name = name.replace(/ /g, "-");return stream_id + "-" + name;}