Hotfix not matching Nimble v0.8.10 correctly.

This commit is contained in:
Dominik Picheta 2018-02-27 20:14:51 +00:00
parent 7f45624309
commit 43c439e313

View file

@ -69,7 +69,7 @@ proc getNimbleVersion(toolchainPath: string): Version =
let command = toolchainPath / "bin" / "nimble".addFileExt(ExeExt)
let (output, _) = execCmdEx(command & " -v")
var matches: array[0 .. MaxSubpatterns, string]
if output.find(peg"'nimble v'{(\d+\.)+\d}", matches) != -1:
if output.find(peg"'nimble v'{(\d+\.)+\d+}", matches) != -1:
result = newVersion(matches[0])
else:
display("Warning:", "Could not find toolchain's Nimble version.",