From 5873bde6a62857f92f3fb3d756914cc1efd0ec25 Mon Sep 17 00:00:00 2001 From: whqwert <94757998+whqwert@users.noreply.github.com> Date: Sat, 18 Mar 2023 16:38:08 -0500 Subject: [PATCH] fix(apiMessagePopover): fix match (#608) --- src/plugins/apiMessagePopover.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/apiMessagePopover.ts b/src/plugins/apiMessagePopover.ts index 7e297f273..0463c5912 100644 --- a/src/plugins/apiMessagePopover.ts +++ b/src/plugins/apiMessagePopover.ts @@ -27,7 +27,7 @@ export default definePlugin({ find: "Messages.MESSAGE_UTILITIES_A11Y_LABEL", replacement: { // foo && !bar ? createElement(blah,...makeElement(addReactionData)) - match: /(\i&&!\i)\?\(0,\i\.jsxs?\)\(.{0,20}renderPopout:.{0,300}?(\i)\(.{3,20}\{key:"add-reaction".+?\}/, + match: /(\i&&!\i)\?\(0,\i\.jsxs?\)\(.{0,200}renderPopout:.{0,300}?(\i)\(.{3,20}\{key:"add-reaction".+?\}/, replace: (m, bools, makeElement) => { const msg = m.match(/message:(.{1,3}),/)?.[1]; if (!msg) throw new Error("Could not find message variable");