From 2b4c73730f64a3f731521061acb4046b9acae6d9 Mon Sep 17 00:00:00 2001 From: Basil Date: Sun, 25 Oct 2026 08:56:58 +0000 Subject: [PATCH] fix(CleanLinks): fix patch --- .../extendify-entrypoint/src/plugins/cleanLinks.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/extendify-entrypoint/src/plugins/cleanLinks.ts b/packages/extendify-entrypoint/src/plugins/cleanLinks.ts index c75d888..3dec4cd 100644 --- a/packages/extendify-entrypoint/src/plugins/cleanLinks.ts +++ b/packages/extendify-entrypoint/src/plugins/cleanLinks.ts @@ -1,4 +1,4 @@ -import { exportFunction, registerPatch } from "@extendify/api/context/patch"; +import { registerPatch } from "@extendify/api/context/patch"; import { registerPlugin } from "@extendify/api/context/plugin"; const { plugin } = registerPlugin({ @@ -12,13 +12,7 @@ const { plugin } = registerPlugin({ registerPatch(plugin, { find: "feedback.link-copied", replacement: { - match: /((?:const|let){shareUrl:\i,shareId:\i})=(\i)/, - replace: "$1={...$2,shareUrl:$exp.removeShareId($2.shareUrl)}" + match: /\?si=\${\i}/g, + replace: "" } }); - -exportFunction(plugin, function removeShareId(shareUrl: string) { - const url = new URL(shareUrl); - url.searchParams.delete("si"); - return url.toString(); -});