Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
alert_words: Revert back `before_punctuation` regex to stable one.
Riken Shah37b265495b04
diff --git a/static/js/alert_words.js b/static/js/alert_words.jsindex 74a0464c5d5..2f6c274d383 100644--- a/static/js/alert_words.js+++ b/static/js/alert_words.js@@ -32,7 +32,7 @@ export function process_message(message) {for (const word of my_alert_words) {const clean = _.escapeRegExp(word);- const before_punctuation = "(?<=\\s)|^|>|[\\(\\\".,';\\[]";+ const before_punctuation = "\\s|^|>|[\\(\\\".,';\\[]";const after_punctuation = "(?=\\s)|$|<|[\\)\\\"\\?!:.,';\\]!]";const regex = new RegExp(`(${before_punctuation})(${clean})(${after_punctuation})`, "ig");