mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-18 18:10:43 +08:00
🎨 Improve file:// address decoding https://github.com/siyuan-note/siyuan/issues/13908
This commit is contained in:
parent
15349ebfb1
commit
d98d62dcc5
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user