diff --git a/src/equicordplugins/alwaysExpandProfiles/index.ts b/src/equicordplugins/alwaysExpandProfiles/index.ts index e77a05da5..1d6844065 100644 --- a/src/equicordplugins/alwaysExpandProfiles/index.ts +++ b/src/equicordplugins/alwaysExpandProfiles/index.ts @@ -16,7 +16,7 @@ export default definePlugin({ { find: '"view-profile"', replacement: { - match: /\i\((\i)\)\{.{0,45}\(0,\i\.openUserProfileModal.{0,300}(?=return)/, + match: /function (\i)\(\i?\)\{.{0,45}\(0,\i\.openUserProfileModal.{0,300}(?=return)/, replace: "$&return $1();" }, all: true