mirror of
https://github.com/actions/setup-java.git
synced 2024-11-09 02:03:42 -05:00
Update util.ts
This commit is contained in:
parent
c41070eda4
commit
efbea1411b
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ export function getDownloadArchiveExtension() {
|
||||||
|
|
||||||
export function isVersionSatisfies(range: string, version: string): boolean {
|
export function isVersionSatisfies(range: string, version: string): boolean {
|
||||||
if (semver.valid(range)) {
|
if (semver.valid(range)) {
|
||||||
// Test if full version with build digit is provided as a range (such as '1.2.3+4')
|
// if full version with build digit is provided as a range (such as '1.2.3+4')
|
||||||
// we should check for exact equal via compareBuild
|
// we should check for exact equal via compareBuild
|
||||||
// since semver.satisfies doesn't handle 4th digit
|
// since semver.satisfies doesn't handle 4th digit
|
||||||
const semRange = semver.parse(range);
|
const semRange = semver.parse(range);
|
||||||
|
|
Loading…
Reference in a new issue