From 49d9f82f549c09ad8ec5f03ab914949b12bb0f71 Mon Sep 17 00:00:00 2001 From: SneedBot Date: Mon, 15 Jan 2024 01:48:31 +0000 Subject: [PATCH] Revert "fix typing shit after a : (like so https://rdrama.net/h/peakpoors/post/230914/proud-alumni/5606081#context)" This reverts commit 65e643eb38b6c4c08bb2809cede0c0e08fe6cb09. --- files/assets/js/emoji_modal/inline_emoji_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/emoji_modal/inline_emoji_modal.js b/files/assets/js/emoji_modal/inline_emoji_modal.js index e280b06a3..451096387 100644 --- a/files/assets/js/emoji_modal/inline_emoji_modal.js +++ b/files/assets/js/emoji_modal/inline_emoji_modal.js @@ -136,7 +136,7 @@ function update_inline_emoji_modal(event) // Get current word at string, such as ":marse" or "word" 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(); /* We could also check emoji_typing_state here, which is less accurate but more efficient. I've