From dad1464d4fe82391f4da7fa86c62be4e9c2a9435 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 12 Mar 2025 19:10:36 -0400 Subject: [PATCH] CustomUserColors: Fallback to prevent crash --- src/equicordplugins/customUserColors/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/customUserColors/index.tsx b/src/equicordplugins/customUserColors/index.tsx index b208ea85..db6c1986 100644 --- a/src/equicordplugins/customUserColors/index.tsx +++ b/src/equicordplugins/customUserColors/index.tsx @@ -103,12 +103,12 @@ export default definePlugin({ find: "!1,wrapContent", replacement: [ { - match: /(innerClassName:\i)(\}=\i)/, - replace: "$1,style$2" + match: /(\}=\i)/, + replace: ",style$1" }, { - match: /(nameAndDecorators,)/, - replace: "$1style," + match: /(?<=nameAndDecorators,)/, + replace: "style:style||{}," }, ], },