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

This commit is contained in:
Grzesiek11 2023-12-22 18:51:27 +01:00
parent 14512a50eb
commit 47c33696fc
No known key found for this signature in database
GPG key ID: 4A5445FB68CDB5C4

View file

@ -29,7 +29,7 @@ export default definePlugin({
{ {
find: "getSrc(){", find: "getSrc(){",
replacement: { replacement: {
match: /(if\(null!=.{1,2}\))return .{1,2}\.default\.getURL\(.{1,2}\)/, match: /(if\(null!=\i\))return \i\.default\.getURL\(\i\)/,
replace: "$1return null", replace: "$1return null",
}, },
}, },