From 19c3112d52f848494f60d2c1fa6d146be3f72b08 Mon Sep 17 00:00:00 2001 From: rini Date: Wed, 25 Oct 2023 15:57:08 -0300 Subject: [PATCH] fix spellcheck patch (#169) --- 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 b77f8f3..038f06a 100644 --- a/src/renderer/patches/spellCheck.tsx +++ b/src/renderer/patches/spellCheck.tsx @@ -22,7 +22,7 @@ addPatch({ find: ".enableSpellCheck)", replacement: { // if (isDesktop) { DiscordNative.onSpellcheck(openMenu(props)) } else { e.preventDefault(); openMenu(props) } - match: /else\{(.{1,3})\.preventDefault\(\);(.{1,3}\(.{1,3}\))\}(?<=:(.{1,3})\.enableSpellCheck\).+?)/, + match: /else (.{1,3})\.preventDefault\(\),(.{1,3}\(.{1,3}\))(?<=:(.{1,3})\.enableSpellCheck\).+?)/, // ... else { $self.onSlateContext(() => openMenu(props)) } replace: "else {$self.onSlateContext($1, $3?.enableSpellCheck, () => $2)}" }