Hotfix not matching Nimble v0.8.10 correctly.
This commit is contained in:
parent
7f45624309
commit
43c439e313
1 changed files with 1 additions and 1 deletions
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue