From 47c33696fc8125028c3cd81ad7eb61aa41edf1e8 Mon Sep 17 00:00:00 2001 From: Grzesiek11 Date: Fri, 22 Dec 2023 18:51:27 +0100 Subject: [PATCH] Use \i instead of .{1,2} to match identifiers --- src/plugins/textEmoji/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/textEmoji/index.ts b/src/plugins/textEmoji/index.ts index af792cb13..e022e9a4b 100644 --- a/src/plugins/textEmoji/index.ts +++ b/src/plugins/textEmoji/index.ts @@ -29,7 +29,7 @@ export default definePlugin({ { find: "getSrc(){", 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", }, },