Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
dc9ef1ff1e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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