fix(admin): support 4-segment version number format (x.y.z.w)

Allow version names like 1.0.0.4 in addition to the standard x.y.z format.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-09 06:41:46 -08:00
parent 2e6f22e9d8
commit 4307d1eb91
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export class UploadVersionDto {
@ApiPropertyOptional({ description: '版本名称 (可从APK/IPA自动检测)', example: '1.0.0' })
@IsOptional()
@IsString()
@Matches(/^\d+\.\d+\.\d+$/, { message: 'versionName must be in format x.y.z' })
@Matches(/^\d+\.\d+\.\d+(\.\d+)?$/, { message: 'versionName must be in format x.y.z or x.y.z.w' })
versionName?: string
@ApiPropertyOptional({ description: '构建号 (可从APK/IPA自动检测)', example: '100' })