From 4234c35d0cd4ba4ce7cbdb81625d2874627a024c Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 Apr 2024 05:49:54 +0200 Subject: [PATCH] make username suggestor work when adding/kicking some in private chat --- files/assets/js/emoji_modal/inline_emoji_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/emoji_modal/inline_emoji_modal.js b/files/assets/js/emoji_modal/inline_emoji_modal.js index a07f0f71a..4ba758045 100644 --- a/files/assets/js/emoji_modal/inline_emoji_modal.js +++ b/files/assets/js/emoji_modal/inline_emoji_modal.js @@ -135,7 +135,7 @@ function update_inline_emoji_modal(event) // Get current word at string, such as ":marse" or "word" let coords = text.indexOf(' ', box_coords.pos); - current_word = /(^|\s)([:!@][!#a-zA-Z0-9_]+(?=\n|$))/.exec(text.slice(0, coords === -1 ? text.length : coords)); + 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('!')))