From 0b1f8a66d8260e3dbb9e043eecb19a0a11e367b8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 12 Apr 2024 15:49:45 +0200 Subject: [PATCH] fix - breaking --- 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 ee34ac360..9c47fac48 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_]{2,}(?=\n|$))/.exec(text.slice(0, coords === -1 ? text.length : coords)); + current_word = /(^|\s|\+|-)([:!@][!#a-zA-Z0-9_-]{2,}(?=\n|$))/.exec(text.slice(0, coords === -1 ? text.length : coords)); if (current_word) current_word = current_word[2].toLowerCase(); if (current_word && curr_word_is_emoji() && current_word != ":")