From a41abfef319ef2dd4db87ab2f6617a562dd24ccd Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 25 Oct 2023 23:06:30 +0200 Subject: [PATCH] Fix MemberCount --- src/plugins/memberCount/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/memberCount/index.tsx b/src/plugins/memberCount/index.tsx index ecdb8afb..d9cd548e 100644 --- a/src/plugins/memberCount/index.tsx +++ b/src/plugins/memberCount/index.tsx @@ -105,10 +105,10 @@ export default definePlugin({ authors: [Devs.Ven, Devs.Commandtechno], patches: [{ - find: ".isSidebarVisible,", + find: "{isSidebarVisible:", replacement: { - match: /(var (\i)=\i\.className.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/, - replace: "$1:[$2?.startsWith('members')?$self.render():null,$3" + match: /(?<=let\{className:(\i),.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/, + replace: ":[$1?.startsWith('members')?$self.render():null,$2" } }],