fix: 脚本链接为路径时带参解析

This commit is contained in:
xream
2025-06-02 23:17:47 +08:00
parent 1cd740aca0
commit 2093baaedb
2 changed files with 4 additions and 4 deletions

View File

@@ -142,9 +142,9 @@ async function processFn(
? `#${rawArgs[1]}`
: ''
}`;
const downloadUrlMatch = url.match(
/^\/api\/(file|module)\/(.+)/,
);
const downloadUrlMatch = url
.split('#')[0]
.match(/^\/api\/(file|module)\/(.+)/);
if (downloadUrlMatch) {
let type = '';
try {