refactor: use \i in patch

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

View file

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