Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Refactor `user_mention_re` to match characters except `>`.
akshatdaltone50d18919114
diff --git a/static/js/markdown.js b/static/js/markdown.jsindex 042612dd738..30f81011e31 100644--- a/static/js/markdown.js+++ b/static/js/markdown.js@@ -218,7 +218,7 @@ export function apply_markdown(message) {},silencedMentionHandler(quote) {// Silence quoted mentions.- const user_mention_re = /<span.*user-mention.*data-user-id="(\d+|\*)"[^>]*>@/gm;+ const user_mention_re = /<span[^>]*user-mention[^>]*data-user-id="(\d+|\*)"[^>]*>@/gm;quote = quote.replace(user_mention_re, (match) => {match = match.replace(/"user-mention"/g, '"user-mention silent"');match = match.replace(/>@/g, ">");