Forgot to use \i

This commit is contained in:
Luna 2023-10-19 12:38:42 -04:00
parent b9434d3970
commit dd4e2048c8

View file

@ -106,7 +106,7 @@ export default definePlugin({
replacement:
{
// We add the banner as a property while we can still access the user id
match: /((\w)=\w\.user.+)(,avatar:function)/,
match: /((\i)=\i\.user.+)(,avatar:function)/,
replace: "$1,banner:$self.memberListBannerHook($2)$3",
},
},
@ -115,7 +115,7 @@ export default definePlugin({
replacement:
{
// We cant access the user id here, so we take the banner property we set earlier
match: /(renderInner=function.+\w=)(\w)\.children/,
match: /(renderInner=function.+\i=)(\i)\.children/,
replace: "$1[$2.banner, $2.children]",
}
}