Fix broken patches (#701)
This commit is contained in:
parent
bbf3c74cb2
commit
92b84a9e94
@ -32,10 +32,10 @@ export default definePlugin({
|
||||
}
|
||||
},
|
||||
{
|
||||
find: "\"github.com\":new RegExp(\"\\\\/releases\\\\S*\\\\/download\"),",
|
||||
find: '"7z","ade","adp"',
|
||||
replacement: {
|
||||
match: /const o=JSON.parse\('\[.+?'\)/,
|
||||
replace: "const o=[]"
|
||||
match: /JSON\.parse\('\[.+?'\)/,
|
||||
replace: "[]"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -37,11 +37,11 @@ export default definePlugin({
|
||||
},
|
||||
},
|
||||
{
|
||||
find: '"username"===',
|
||||
find: '"dot"===',
|
||||
all: true,
|
||||
predicate: () => Settings.plugins.BetterRoleDot.bothStyles,
|
||||
replacement: {
|
||||
match: /"(?:username|dot)"===\w(?!\.\w)/g,
|
||||
match: /"(?:username|dot)"===\i(?!\.\i)/g,
|
||||
replace: "true",
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user