mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
🐛 拖入文件名包含 ) 的文件以 file:// 插入后链接解析错误 Fix https://github.com/siyuan-note/siyuan/issues/5786
This commit is contained in:
parent
4bf5f8de10
commit
dfb47c00ff
2 changed files with 9 additions and 1 deletions
|
|
@ -477,6 +477,9 @@ export const openBy = (url: string, type: "folder" | "app") => {
|
|||
address = url.replace("file://", "");
|
||||
}
|
||||
if (type === "app") {
|
||||
// 拖入文件名包含 `)` 的文件以 `file://` 插入后链接解析错误 https://github.com/siyuan-note/siyuan/issues/5786
|
||||
address = address.replace(/\\\)/g, ")")
|
||||
|
||||
shell.openPath(address);
|
||||
} else if (type === "folder") {
|
||||
shell.showItemInFolder(address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue