make ShowMeYourName patch safer
This commit is contained in:
parent
113a1f4b86
commit
4ab084c0ac
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ export default definePlugin({
|
|||
{
|
||||
find: '="SYSTEM_TAG"',
|
||||
replacement: {
|
||||
match: /(?<=onContextMenu:\i,children:)\i\?/,
|
||||
// The field is named "userName", but as this is unusual casing, the regex also matches username, in case they change it
|
||||
match: /(?<=onContextMenu:\i,children:)\i\?(?=.{0,100}?user[Nn]ame:)/,
|
||||
replace: "$self.renderUsername(arguments[0]),_oldChildren:$&"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue