Fix BetterBanReasons

This commit is contained in:
thororen1234 2025-06-10 14:27:13 -04:00
parent d53083d3ce
commit b386e7e756
No known key found for this signature in database

View file

@ -78,11 +78,11 @@ export default definePlugin({
{ {
find: "#{intl::BAN_REASON_OPTION_SPAM_ACCOUNT}", find: "#{intl::BAN_REASON_OPTION_SPAM_ACCOUNT}",
replacement: [{ 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()" replace: "$self.getReasons()"
}, },
{ {
match: /useState\(0\)(?=.{0,100}targetUserId:)/, match: /useState\(null\)(?=.{0,200}targetUserId:)/,
replace: "useState($self.getDefaultState())" replace: "useState($self.getDefaultState())"
}] }]
} }