mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-20 20:07:03 -04:00
Fix BetterBanReasons
This commit is contained in:
parent
d53083d3ce
commit
b386e7e756
1 changed files with 2 additions and 2 deletions
|
@ -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())"
|
||||
}]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue