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);` } ]