aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/apiBadges.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/apiBadges.tsx')
-rw-r--r--src/plugins/apiBadges.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/apiBadges.tsx b/src/plugins/apiBadges.tsx
index d14678c..3fe2f6b 100644
--- a/src/plugins/apiBadges.tsx
+++ b/src/plugins/apiBadges.tsx
@@ -73,7 +73,7 @@ export default definePlugin({
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}(\i)\.jsx.+?(\i)\.onClick.+?\)})},/,
// 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
replace: (_, s, origBadgeComponent, React, badge) =>