1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-25 16:56:23 +00:00

Use \i instead of .{1,2} to match identifiers

This commit is contained in:
Grzesiek11 2023-12-22 19:39:30 +01:00
parent 124f12e384
commit 9605dabd10
No known key found for this signature in database
GPG key ID: 4A5445FB68CDB5C4

View file

@ -27,7 +27,7 @@ export default definePlugin({
{
find: ".useCanSeeRemixBadge)",
replacement: {
match: /style:"username"===.{1,2}&&null!=.{1,2}\?{color:.{1,2}}:void 0/,
match: /style:"username"===\i&&null!=\i\?{color:\i}:void 0/,
replace: "style:{color:$self.calculateNameColor(BigInt(arguments[0].message.author.id))}"
},
},