From 15349ebfb15681bc356f6132d9262cac0002e1e4 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 27 Jan 2025 14:23:02 +0800 Subject: [PATCH] :art: Improve file:// address decoding https://github.com/siyuan-note/siyuan/issues/13908 --- app/src/editor/util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index f30062a43..60b4c0c72 100644 --- a/app/src/editor/util.ts +++ b/app/src/editor/util.ts @@ -697,6 +697,7 @@ export const openBy = (url: string, type: "folder" | "app") => { } else { address = url.replace("file://", ""); } + address = address.replace(/%20/g, " "); // 拖入文件名包含 `)` 、`(` 的文件以 `file://` 插入后链接解析错误 https://github.com/siyuan-note/siyuan/issues/5786 address = address.replace(/\\\)/g, ")").replace(/\\\(/g, "("); if (type === "app") {