|
|
@ -78,7 +78,7 @@ export default definePlugin({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// replace their component with ours if applicable
|
|
|
|
// replace their component with ours if applicable
|
|
|
|
{
|
|
|
|
{
|
|
|
|
match: /(?<=text:(\i)\.description,spacing:12,)children:/,
|
|
|
|
match: /(?<=text:(\i)\.description,spacing:12,.{0,50})children:/,
|
|
|
|
replace: "children:$1.component ? () => $self.renderBadgeComponent($1) :"
|
|
|
|
replace: "children:$1.component ? () => $self.renderBadgeComponent($1) :"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// conditionally override their onClick with badge.onClick if it exists
|
|
|
|
// conditionally override their onClick with badge.onClick if it exists
|
|
|
|