Fixes version peg for multiple digit versions.
This commit is contained in:
parent
ee952e92fc
commit
7d18e2be1c
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ proc getNimrodVersion*: TVersion =
|
|||
let nimBin = getNimBin()
|
||||
let vOutput = doCmdEx(nimBin & " -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:
|
||||
quit("Couldn't find Nim version.", QuitFailure)
|
||||
newVersion(matches[0])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue