mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 Improve file:// address decoding https://github.com/siyuan-note/siyuan/issues/13908
This commit is contained in:
parent
15349ebfb1
commit
d98d62dcc5
1 changed files with 1 additions and 1 deletions
|
|
@ -697,7 +697,7 @@ export const openBy = (url: string, type: "folder" | "app") => {
|
||||||
} else {
|
} else {
|
||||||
address = url.replace("file://", "");
|
address = url.replace("file://", "");
|
||||||
}
|
}
|
||||||
address = address.replace(/%20/g, " ");
|
|
||||||
// 拖入文件名包含 `)` 、`(` 的文件以 `file://` 插入后链接解析错误 https://github.com/siyuan-note/siyuan/issues/5786
|
// 拖入文件名包含 `)` 、`(` 的文件以 `file://` 插入后链接解析错误 https://github.com/siyuan-note/siyuan/issues/5786
|
||||||
address = address.replace(/\\\)/g, ")").replace(/\\\(/g, "(");
|
address = address.replace(/\\\)/g, ")").replace(/\\\(/g, "(");
|
||||||
if (type === "app") {
|
if (type === "app") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue