Fix Broken Patches
This commit is contained in:
parent
91c9d4a4a2
commit
24ee073090
2 changed files with 2 additions and 2 deletions
|
|
@ -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});`,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);`
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue