From 90fb96f8e500fac98924b29d092db57d777cefb3 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 16 Nov 2026 22:48:11 +0100 Subject: [PATCH] fix spellcheck --- src/renderer/patches/spellCheck.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/patches/spellCheck.tsx b/src/renderer/patches/spellCheck.tsx index 5a8f33dc..ff76d788 100644 --- a/src/renderer/patches/spellCheck.tsx +++ b/src/renderer/patches/spellCheck.tsx @@ -32,7 +32,7 @@ addPatch({ find: ".enableSpellCheck", replacement: { // if (settings?.enableSpellCheck && isDesktop) { DiscordNative.onSpellcheck(openMenu(props)) } else { e.preventDefault(); openMenu(props) } - match: /else (\i)\.preventDefault\(\),(\i\(\i\))(?<=(\i)\??\.enableSpellCheck.+?)/, + match: /else .{0,20}?(\i)\.preventDefault\(\),(\i\(\i\))(?<=(\i)\??\.enableSpellCheck.+?)/, replace: "else $self.onSlateContext($1, $3?.enableSpellCheck, () => $2)" } }