From d98d62dcc505a3f455f52aa18db6dbc26f78a3fc Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 27 Jan 2025 15:19:33 +0800 Subject: [PATCH] :art: Improve file:// address decoding https://github.com/siyuan-note/siyuan/issues/13908 --- app/src/editor/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts index 60b4c0c72..c68cef1d5 100644 --- a/app/src/editor/util.ts +++ b/app/src/editor/util.ts @@ -697,7 +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") {