From 9acc0170ed341f71abd934c573ef6db1d58c0fd5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Mar 2024 20:43:19 +0200 Subject: [PATCH] append space --- files/assets/js/emoji_modal/inline_group_modal.js | 2 +- files/assets/js/emoji_modal/inline_user_modal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/emoji_modal/inline_group_modal.js b/files/assets/js/emoji_modal/inline_group_modal.js index 28770c307..1d30330e2 100644 --- a/files/assets/js/emoji_modal/inline_group_modal.js +++ b/files/assets/js/emoji_modal/inline_group_modal.js @@ -108,7 +108,7 @@ function populate_inline_group_modal(results, textbox) group_option.addEventListener('click', () => { close_inline_emoji_modal() - textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `!${name}`) + textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `!${name} `) textbox.focus() if (typeof markdown === "function" && textbox.dataset.preview) { markdown(textbox) diff --git a/files/assets/js/emoji_modal/inline_user_modal.js b/files/assets/js/emoji_modal/inline_user_modal.js index 362b7b6b1..b73f30ef6 100644 --- a/files/assets/js/emoji_modal/inline_user_modal.js +++ b/files/assets/js/emoji_modal/inline_user_modal.js @@ -113,7 +113,7 @@ function populate_inline_user_modal(results, textbox) user_option.addEventListener('click', () => { close_inline_emoji_modal() - textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `@${name}`) + textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `@${name} `) textbox.focus() if (typeof markdown === "function" && textbox.dataset.preview) { markdown(textbox)