From 24ee0730906b33f762af6fdf42c3e2442b90c6b3 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 9 Dec 2025 12:52:53 -0500 Subject: [PATCH] Fix Broken Patches --- src/equicordplugins/toneIndicators/index.tsx | 2 +- src/plugins/fakeNitro/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/toneIndicators/index.tsx b/src/equicordplugins/toneIndicators/index.tsx index 19bcda6cd..ff38ce2a3 100644 --- a/src/equicordplugins/toneIndicators/index.tsx +++ b/src/equicordplugins/toneIndicators/index.tsx @@ -174,7 +174,7 @@ export default definePlugin({ find: '["strong","em","u","text","inlineCode","s","spoiler"]', replacement: [ { - match: /(?=return\{hasSpoilerEmbeds:\i,content:(\i)\})/, + match: /(?=return\{hasSpoilerEmbeds:\i,content:(\i))/, replace: (_: any, content: string) => `${content}=$self.patchToneIndicators(${content});`, }, diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index 5f1747433..345ae0273 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -301,7 +301,7 @@ export default definePlugin({ { // Patch the rendered message content to add fake nitro emojis or remove sticker links predicate: () => settings.store.transformEmojis || settings.store.transformStickers, - match: /(?=return{hasSpoilerEmbeds:\i,content:(\i)})/, + match: /(?=return\{hasSpoilerEmbeds:\i,content:(\i))/, replace: (_, content) => `${content}=$self.patchFakeNitroEmojisOrRemoveStickersLinks(${content},arguments[2]?.formatInline);` } ]