refactor: use $& for whole match

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Noah 2024-04-18 08:47:49 +02:00 committed by GitHub
parent baf7a5f58b
commit 28ba0c729d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ addPatch({
find: "lastOutputSystemDevice.justChanged",
replacement: {
match: /(\i)\.default\.getState\(\).neverShowModal/,
replace: "$1 || $self.shouldIgnore($2)"
replace: "$& || $self.shouldIgnore($1)"
}
}
],