minor fix

This commit is contained in:
Dmitry Shibanov 2022-10-13 16:27:08 +02:00
parent ee9cdf3888
commit 9b82ea39ef
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@ -73424,7 +73424,7 @@ function evaluateVersions(versions, versionSpec) {
}); });
for (let i = versions.length - 1; i >= 0; i--) { for (let i = versions.length - 1; i >= 0; i--) {
const potential = versions[i]; const potential = versions[i];
const satisfied = semver.satisfies(potential.replace('-nightly', '+nightly.'), versionSpec.replace('-nightly', '+nightly.')); const satisfied = semver.satisfies(potential.replace('-nightly', '+nightly.'), versionSpec.replace('-nightly', '+nightly'));
if (satisfied) { if (satisfied) {
version = potential; version = potential;
break; break;

View File

@ -363,7 +363,7 @@ function evaluateVersions(versions: string[], versionSpec: string): string {
const potential: string = versions[i]; const potential: string = versions[i];
const satisfied: boolean = semver.satisfies( const satisfied: boolean = semver.satisfies(
potential.replace('-nightly', '+nightly.'), potential.replace('-nightly', '+nightly.'),
versionSpec.replace('-nightly', '+nightly.') versionSpec.replace('-nightly', '+nightly')
); );
if (satisfied) { if (satisfied) {
version = potential; version = potential;