forked from MarseyWorld/MarseyWorld
append space
parent
781d50f4d0
commit
9acc0170ed
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue