From 47a2ae3e6f5820f0d8c2885978ac07441f00988e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 2 Feb 2026 15:30:54 -0500 Subject: [PATCH] Fix Patches --- src/equicordplugins/questify/index.tsx | 4 ++-- src/equicordplugins/toneIndicators/index.tsx | 5 ++--- src/plugins/fakeNitro/index.tsx | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index f58691d37..d5c3f7384 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -1288,8 +1288,8 @@ export default definePlugin({ // Allows in-progress Quests to still show. find: "QUESTS_BAR,questId", replacement: { - match: /return null==(\i)\?null:\(/, - replace: "return !$self.shouldHideQuestPopup($1)&&(" + match: /(?<=quest:(\i)\}\);)return/, + replace: "return !$self.shouldHideQuestPopup($1)&&" } }, { diff --git a/src/equicordplugins/toneIndicators/index.tsx b/src/equicordplugins/toneIndicators/index.tsx index ff38ce2a3..655020748 100644 --- a/src/equicordplugins/toneIndicators/index.tsx +++ b/src/equicordplugins/toneIndicators/index.tsx @@ -174,9 +174,8 @@ export default definePlugin({ find: '["strong","em","u","text","inlineCode","s","spoiler"]', replacement: [ { - match: /(?=return\{hasSpoilerEmbeds:\i,content:(\i))/, - replace: (_: any, content: string) => - `${content}=$self.patchToneIndicators(${content});`, + match: /(?=return\{hasSpoilerEmbeds:\i,.{0,15}content:(\i))/, + replace: "$1=$self.patchToneIndicators($1);", }, ], }, diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index d3fffbb20..29ccf1719 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -299,7 +299,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,.{0,15}content:(\i))/, replace: (_, content) => `${content}=$self.patchFakeNitroEmojisOrRemoveStickersLinks(${content},arguments[2]?.formatInline);` } ]