make username suggestor work when adding/kicking some in private chat

master
Aevann 2024-04-06 05:49:54 +02:00
parent 02d161261f
commit 4234c35d0c
1 changed files with 1 additions and 1 deletions

View File

@ -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('!')))