fix: 上传软件包版本号提取正则修改
This commit is contained in:
@@ -191,7 +191,7 @@ function fnBeforeUploadFile(file: FileType) {
|
||||
modalState.from.neType = neType;
|
||||
|
||||
// 根据给定的软件名取版本号 ims-r2.2312.x-ub22.deb
|
||||
const matches = fileName.match(/([0-9.]+[0-9x]+)/);
|
||||
const matches = fileName.match(/([0-9.]+[0-9a-zA-Z]+)/);
|
||||
if (matches) {
|
||||
modalState.from.version = matches[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user