add space
parent
0c08e5d7bb
commit
76ca2a592b
|
@ -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);
|
||||
let coords = text.indexOf(' ', box_coords.pos);
|
||||
current_word = /(^|\s)(:[!#a-zA-Z0-9_]+(?=\n|$))/.exec(text.slice(0, coords === -1 ? text.length : coords));
|
||||
if (current_word) current_word = current_word[2].toLowerCase();
|
||||
|
||||
|
|
Loading…
Reference in New Issue