mini picker: add a space after emoji

pull/139/head
Aevann 2023-03-10 03:16:21 +02:00
parent 6d3d15f097
commit 824f0e3916
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ function populate_speed_emoji_modal(results, textbox)
emoji_option.addEventListener('click', () => {
selecting = false;
speed_carot_modal.style.display = "none";
textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "g"), `:${result}:`)
textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "g"), `:${result}: `)
textbox.focus()
if (document.location.pathname != '/chat'){
markdown(textbox)