Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
thororen1234 2025-12-09 23:12:31 -05:00
commit dc9ef1ff1e
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ export default definePlugin({
replace: "...$1.props,$&"
},
{
match: /(?<="aria-label":(\i)\.description,.{0,200})children:/,
match: /(?<="aria-label":(\i)\.description,.{0,200}?)children:/g,
replace: "children:$1.component?$self.renderBadgeComponent({...$1}) :"
},
// handle onClick and onContextMenu

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