From 8e2a19e80b4710ca56bf0198aa6aad8645596d27 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 9 Mar 2024 08:38:56 +0200 Subject: [PATCH] fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6077361#context --- files/assets/js/emoji_modal/inline_emoji_modal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/assets/js/emoji_modal/inline_emoji_modal.js b/files/assets/js/emoji_modal/inline_emoji_modal.js index 8733d96a2..6c4e4b3b6 100644 --- a/files/assets/js/emoji_modal/inline_emoji_modal.js +++ b/files/assets/js/emoji_modal/inline_emoji_modal.js @@ -138,6 +138,9 @@ function update_inline_emoji_modal(event) current_word = /(^|\s)([:!@][!#a-zA-Z0-9_]+(?=\n|$))/.exec(text.slice(0, coords === -1 ? text.length : coords)); if (current_word) current_word = current_word[2].toLowerCase(); + if (current_word && (current_word.endsWith('#') || current_word.endsWith('!'))) + return + if (current_word && curr_word_is_emoji() && current_word != ":") { openSpeedModal().then( () => {