mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 01:53:05 -04:00
Fix Emote Cloner and improve ReverseImageSearch (#489)
This commit is contained in:
parent
0fb3901a18
commit
253183a16a
4 changed files with 107 additions and 103 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue