Fix broken patches (#701)

This commit is contained in:
Nuckyz 2023-03-25 05:42:26 -03:00 committed by GitHub
parent bbf3c74cb2
commit 92b84a9e94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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: "[]"
}
}
]

View file

@ -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",
},
},