mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 04:17:01 -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}",
|
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())"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue