diff options
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 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:[]," } } ] |