BadgesAPI: Update Patch to be stable compat

This commit is contained in:
thororen1234 2026-03-13 08:55:22 -04:00
parent 9b69d9b33f
commit 92b7df7b3c
No known key found for this signature in database

View file

@ -138,7 +138,7 @@ export default definePlugin({
replace: "...$1.props,$&"
},
{
match: /(?<=__unsupportedReactNodeAsText:\i,forceOpen:.{0,40}?)children:(?=.{0,5}\$\{(\i)\.id\})/,
match: /(?<=__unsupportedReactNodeAsText:\i,forceOpen:.{0,70}?)children:(?=.{0,5}\$\{(\i)\.id\})/,
replace: "children:$1.component?$self.renderBadgeComponent({...$1}) :"
},
// handle onClick and onContextMenu