Unverified Commit efbea141 authored by Shubham Tiwari's avatar Shubham Tiwari Committed by GitHub
Browse files

Update util.ts

parent c41070ed
Loading
Loading
Loading
Loading
+1 −1
Changes for src/util.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ export function getDownloadArchiveExtension() {

export function isVersionSatisfies(range: string, version: string): boolean {
  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
    // since semver.satisfies doesn't handle 4th digit
    const semRange = semver.parse(range);