Skip to content

Commit ce22bd3

Browse files
committed
fix: 文件路径中出现多于一个特殊字符时无法下载
1 parent 8e9aa87 commit ce22bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logic/actual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const getFileList = async (allowCache) => {
5858
if (hrefEl.length >= 1) {
5959
// Sharepoint 返回中包含 Unicode 字符,需要转义
6060
directLink = encodeURI(hrefEl[0].textContent);
61-
directLink = directLink.replace('%25', '%');
61+
directLink = directLink.replaceAll('%25', '%');
6262
}
6363
// 获得文件名
6464
let nameEl = el.getElementsByTagName('D:displayname');

0 commit comments

Comments
 (0)