From 676c1835282b42d30b583c6c6f559921936c1f39 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 8 Sep 2023 20:53:32 -0700 Subject: [PATCH] Fix find/replace on at mentions --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5904bdb..d628715 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2404,12 +2404,12 @@ export default { // Were we at mentioned in this message? if (message.indexOf("@"+this.username) > -1) { - let re = new RegExp("@"+this.username+"\\b"); + let re = new RegExp("@"+this.username+"\\b", "ig"); message = message.replace(re, `@${this.username}`); } // And same for @here or @all - message = message.replace(/@(here|all)\b/i, `@$1`); + message = message.replace(/@(here|all)\b/ig, `@$1`); // Append the message. this.channels[channel].updated = new Date().getTime();