mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +00:00
minor fix
This commit is contained in:
parent
ee9cdf3888
commit
9b82ea39ef
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -73424,7 +73424,7 @@ function evaluateVersions(versions, versionSpec) {
|
|||
});
|
||||
for (let i = versions.length - 1; i >= 0; 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) {
|
||||
version = potential;
|
||||
break;
|
||||
|
|
|
@ -363,7 +363,7 @@ function evaluateVersions(versions: string[], versionSpec: string): string {
|
|||
const potential: string = versions[i];
|
||||
const satisfied: boolean = semver.satisfies(
|
||||
potential.replace('-nightly', '+nightly.'),
|
||||
versionSpec.replace('-nightly', '+nightly.')
|
||||
versionSpec.replace('-nightly', '+nightly')
|
||||
);
|
||||
if (satisfied) {
|
||||
version = potential;
|
||||
|
|
Loading…
Add table
Reference in a new issue