unscuff profiles
This commit is contained in:
parent
cc51f6e2d2
commit
5a3fbbfb30
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ export default definePlugin({
|
||||||
replace: (_, imageMap, badge) => `src: ${badge}.image ?? ${imageMap}[${badge}.key], ...${badge}.props,`
|
replace: (_, imageMap, badge) => `src: ${badge}.image ?? ${imageMap}[${badge}.key], ...${badge}.props,`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /spacing:(\d{1,2}),children:(.{1,40}(.{1,2})\.jsx.+(.{1,2})\.onClick.+\)})},/,
|
match: /spacing:(\d{1,2}),children:(.{1,40}(.{1,2})\.jsx.+?(.{1,2})\.onClick.+?\)})},/,
|
||||||
// if the badge provides it's own component, render that instead of an image
|
// if the badge provides it's own component, render that instead of an image
|
||||||
// the badge also includes info about the user that has it (type BadgeUserArgs), which is why it's passed as props
|
// the badge also includes info about the user that has it (type BadgeUserArgs), which is why it's passed as props
|
||||||
replace: (_, s, origBadgeComponent, React, badge) =>
|
replace: (_, s, origBadgeComponent, React, badge) =>
|
||||||
|
|
Loading…
Reference in a new issue