From db7e0060c531d46bfb32f52ea3c20ef56a8c3377 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:27:46 -0400 Subject: [PATCH] Remove CanCopyImage From Match --- src/plugins/webContextMenus.web/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/webContextMenus.web/index.ts b/src/plugins/webContextMenus.web/index.ts index 41a5552c..568961c2 100644 --- a/src/plugins/webContextMenus.web/index.ts +++ b/src/plugins/webContextMenus.web/index.ts @@ -133,7 +133,7 @@ export default definePlugin({ { find: "Copy image not supported", replacement: { - match: /(?<=(?:canSaveImage|canCopyImage)\((\i,\i)?\)\{.{0,150})!\i\.isPlatformEmbedded/g, + match: /(?<=canSaveImage\((\i,\i)?\)\{.{0,150})!\i\.isPlatformEmbedded/g, replace: "false" } }, @@ -147,7 +147,7 @@ export default definePlugin({ replace: "false" }, { - match: /return\s*?\[.{0,50}?(?=\?.{0,25}?id:"copy-image")/, + match: /return\s*?\[.{0,50}?\)(?=\?.{0,100}?id:"copy-image")/, replace: "return [true" }, {