Add more option to include red hat

This commit is contained in:
annie 2024-02-20 13:15:45 -08:00
Родитель c1d4de1f30
Коммит 3629d4e968
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -159,7 +159,7 @@ export class VersionResolver implements IVersionResolver {
} }
Debugging.log(`Semver parsing passed: ${version}.`, this.context.eventStream); Debugging.log(`Semver parsing passed: ${version}.`, this.context.eventStream);
if (version.split('.').length !== 2 || !parsedVer) if (version.split('.').length !== 2 || version.split('.').length !== 3 || !parsedVer)
{ {
Debugging.log(`Resolving the version: ${version} ... it is invalid!`, this.context.eventStream); Debugging.log(`Resolving the version: ${version} ... it is invalid!`, this.context.eventStream);
const err = new DotnetVersionResolutionError(new Error(`An invalid version was requested. Version: ${version}`), version); const err = new DotnetVersionResolutionError(new Error(`An invalid version was requested. Version: ${version}`), version);