aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwhqwert <94757998+whqwert@users.noreply.github.com>2023-03-18 16:38:08 -0500
committerGitHub <noreply@github.com>2023-03-18 22:38:08 +0100
commit5873bde6a62857f92f3fb3d756914cc1efd0ec25 (patch)
treebe2fe84f2acb69048525b5d1f597f159791cd1d3 /src
parent0b793878000476d8d04f7cfedf9d84b583b1dbc2 (diff)
downloadVencord-5873bde6a62857f92f3fb3d756914cc1efd0ec25.tar.gz
Vencord-5873bde6a62857f92f3fb3d756914cc1efd0ec25.tar.bz2
Vencord-5873bde6a62857f92f3fb3d756914cc1efd0ec25.zip
fix(apiMessagePopover): fix match (#608)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/apiMessagePopover.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/apiMessagePopover.ts b/src/plugins/apiMessagePopover.ts
index 7e297f2..0463c59 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");