Skip to content

Commit

Permalink
Fix not parsing openssl version
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Dec 16, 2022
1 parent 840b394 commit c0464ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/semver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Range {
const v1 = new SemVer(match[1])
const v2 = match[3] ? new SemVer(match[4])! : new SemVer([Infinity, Infinity, Infinity])
return [v1, v2]
} else if ((match = input.match(/^([~=<^])((\d+)(\.\d+)*)$/))) {
} else if ((match = input.match(/^([~=<^])(.+)$/))) {
let v1: SemVer | undefined, v2: SemVer | undefined
switch (match[1]) {
case "^":
Expand Down

0 comments on commit c0464ae

Please sign in to comment.