Fix broken patches (#701)

main
Nuckyz 2 years ago committed by GitHub
parent bbf3c74cb2
commit 92b84a9e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save