From b386e7e7561bad0d2f2c578fed1970ced516474c Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 10 Jun 2025 14:27:13 -0400 Subject: [PATCH] Fix BetterBanReasons --- src/equicordplugins/betterBanReasons/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/betterBanReasons/index.tsx b/src/equicordplugins/betterBanReasons/index.tsx index 3c01939c..d638c452 100644 --- a/src/equicordplugins/betterBanReasons/index.tsx +++ b/src/equicordplugins/betterBanReasons/index.tsx @@ -78,11 +78,11 @@ export default definePlugin({ { find: "#{intl::BAN_REASON_OPTION_SPAM_ACCOUNT}", replacement: [{ - match: /\[(\{((name|value):\i\.\i\.string\(\i\.\i\.\i\),?){2}\},?){3}\]/, + match: /\[(\{name:\i\.\i\.\i\(\i\.\i\.\i\),value:(\i\.\i\.\i\(\i\.\i\.\i\)|"other")\},?)+\]/, replace: "$self.getReasons()" }, { - match: /useState\(0\)(?=.{0,100}targetUserId:)/, + match: /useState\(null\)(?=.{0,200}targetUserId:)/, replace: "useState($self.getDefaultState())" }] }