fix: 软件管理上传版本号提取
This commit is contained in:
@@ -646,8 +646,7 @@ function fnBeforeUploadFile(file: FileType) {
|
||||
return false;
|
||||
}
|
||||
// 根据给定的软件名取版本号 ims-r2.2312.x-ub22.deb
|
||||
const regex = /r\d+\.\d+(\.\d+)?/;
|
||||
const matches = fileName.match(regex);
|
||||
const matches = fileName.match(/([0-9.]+[0-9x]+)/);
|
||||
if (matches) {
|
||||
modalState.from.version = matches[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user