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:
parent
124f12e384
commit
9605dabd10
1 changed files with 1 additions and 1 deletions
|
@ -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))}"
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue