aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/apiContextMenu.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/apiContextMenu.ts')
-rw-r--r--src/plugins/apiContextMenu.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/apiContextMenu.ts b/src/plugins/apiContextMenu.ts
index cb85c4f..0eaca78 100644
--- a/src/plugins/apiContextMenu.ts
+++ b/src/plugins/apiContextMenu.ts
@@ -35,8 +35,8 @@ export default definePlugin({
find: ".Menu,{",
all: true,
replacement: {
- match: /(?<=\.jsxs?\)\(\i\.Menu,)\{/g,
- replace: "{contextMenuApiArguments:typeof arguments!=='undefined'?arguments:[],"
+ match: /Menu,{(?<=\.jsxs?\)\(\i\.Menu,{)/g,
+ replace: "$&contextMenuApiArguments:typeof arguments!=='undefined'?arguments:[],"
}
}
]