From bec4c76d9a521a178853b779c308096e2b116fdc Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:04:16 -0300 Subject: [PATCH] Fix ShowAllRoles --- src/plugins/showAllRoles/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" } } ]