diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-03-08 04:01:24 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 04:01:24 -0300 |
commit | 253183a16a78ce0ebc183af7e078b61eb0d4d758 (patch) | |
tree | d22bd2683c6adfd91e988f7f58cfeaae718e5e32 /src/plugins/apiContextMenu.ts | |
parent | 0fb3901a185327f3de39682ea9fc6e809b935807 (diff) | |
download | Vencord-253183a16a78ce0ebc183af7e078b61eb0d4d758.tar.gz Vencord-253183a16a78ce0ebc183af7e078b61eb0d4d758.tar.bz2 Vencord-253183a16a78ce0ebc183af7e078b61eb0d4d758.zip |
Fix Emote Cloner and improve ReverseImageSearch (#489)
Diffstat (limited to 'src/plugins/apiContextMenu.ts')
-rw-r--r-- | src/plugins/apiContextMenu.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/apiContextMenu.ts b/src/plugins/apiContextMenu.ts index 77afead..69dfde4 100644 --- a/src/plugins/apiContextMenu.ts +++ b/src/plugins/apiContextMenu.ts @@ -37,7 +37,7 @@ function listener(exports: any, id: number) { all: true, noWarn: true, find: "navId:", - replacement: { + replacement: [{ /** Regex explanation * Use of https://blog.stevenlevithan.com/archives/mimic-atomic-groups to mimick atomic groups: (?=(...))\1 * Match ${id} and look behind it for the first match of `<variable name>=`: ${id}(?=(\i)=.+?) @@ -45,7 +45,7 @@ function listener(exports: any, id: number) { */ match: RegExp(`(?=(${id}(?<=(\\i)=.+?).+?\\2\\.${key},{))\\1`, "g"), replace: "$&contextMenuApiArguments:arguments," - } + }] }); removeListener(listener); |