forked from rDrama/rDrama
Revert "fix typing shit after a : (like so https://rdrama.net/h/peakpoors/post/230914/proud-alumni/5606081#context)"
This reverts commit 65e643eb38
.
master
parent
a625268eb1
commit
49d9f82f54
|
@ -136,7 +136,7 @@ function update_inline_emoji_modal(event)
|
||||||
|
|
||||||
// Get current word at string, such as ":marse" or "word"
|
// 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));
|
current_word = /:[!#a-zA-Z0-9_]+(?=\n|$)/.exec(text.slice(0, coords === -1 ? text.length : coords));
|
||||||
if (current_word) current_word = current_word[0].toLowerCase();
|
if (current_word) current_word = current_word[0].toLowerCase();
|
||||||
|
|
||||||
/* We could also check emoji_typing_state here, which is less accurate but more efficient. I've
|
/* We could also check emoji_typing_state here, which is less accurate but more efficient. I've
|
||||||
|
|
Loading…
Reference in New Issue