append space

master
Aevann 2024-03-07 20:43:19 +02:00
parent 781d50f4d0
commit 9acc0170ed
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)