Skip to content

Commit

Permalink
patch version can be a multi-digit number (#862)
Browse files Browse the repository at this point in the history
This is crucial for Nim 1.0.10 release, because currently
1.0.10 doesn't satisfy `>= 1.0.4` requirement.
  • Loading branch information
narimiran committed Oct 14, 2020
1 parent 5d9aed1 commit 8f7af86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/tools.nim
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ template cd*(dir: string, body: untyped) =
proc getNimrodVersion*(options: Options): Version =
let vOutput = doCmdEx(getNimBin(options).quoteShell & " -v").output
var matches: array[0..MaxSubpatterns, string]
if vOutput.find(peg"'Version'\s{(\d+\.)+\d}", matches) == -1:
if vOutput.find(peg"'Version'\s{(\d+\.)+\d+}", matches) == -1:
raise newException(NimbleError, "Couldn't find Nim version.")
newVersion(matches[0])

Expand Down

0 comments on commit 8f7af86

Please sign in to comment.