Fix Broken Patches

This commit is contained in:
thororen1234 2025-12-09 12:52:53 -05:00
parent 91c9d4a4a2
commit 24ee073090
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

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

View file

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