fix: 修正正则表达式以匹配Swagger UI版本号格式

This commit is contained in:
2025-03-08 15:33:50 +08:00
parent f289c83f1b
commit 94ef3a71ee

View File

@@ -20,7 +20,7 @@ async function get_download_url() {
return `https://github.com/swagger-api/swagger-ui/archive/refs/tags/${version}.zip`;
}
const DIST = /swagger-ui-[1-9\.]+\/dist/;
const DIST = /swagger-ui-[0-9\.]+\/dist/;
async function unzip(url: string) {
const zip_reader = new ZipReader(new HttpReader(url));