mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
fix: 修正正则表达式以匹配Swagger UI版本号格式
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user