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