Skip to content

Commit 94ef3a7

Browse files
committed
fix: 修正正则表达式以匹配Swagger UI版本号格式
1 parent f289c83 commit 94ef3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/download_swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function get_download_url() {
2020
return `https://github.com/swagger-api/swagger-ui/archive/refs/tags/${version}.zip`;
2121
}
2222

23-
const DIST = /swagger-ui-[1-9\.]+\/dist/;
23+
const DIST = /swagger-ui-[0-9\.]+\/dist/;
2424

2525
async function unzip(url: string) {
2626
const zip_reader = new ZipReader(new HttpReader(url));

0 commit comments

Comments
 (0)