diff --git a/src/plugins/showAllRoles/index.ts b/src/plugins/showAllRoles/index.ts index 02d9f964c..97f0181fa 100644 --- a/src/plugins/showAllRoles/index.ts +++ b/src/plugins/showAllRoles/index.ts @@ -15,8 +15,8 @@ export default definePlugin({ { find: ".Messages.VIEW_ALL_ROLES", replacement: { - match: /return null!=\i(?=\?\i\.slice)/, - replace: "return false" + match: /(\i)\.slice\(0,\i\)/, + replace: "$1" } } ]