path parse bugfix
This commit is contained in:
parent
404b0504ab
commit
dc0246814e
1 changed files with 4 additions and 0 deletions
|
@ -203,6 +203,10 @@ proc parsePath*(path: string): Path =
|
||||||
of ' ', ',', '\r', '\n', '\t':
|
of ' ', ',', '\r', '\n', '\t':
|
||||||
finishNumber()
|
finishNumber()
|
||||||
else:
|
else:
|
||||||
|
if p - 1 == numberStart and path[p - 1] == '0':
|
||||||
|
# If the number starts with 0 and we've hit another digit, finish the 0
|
||||||
|
# .. 01.3.. -> [..0, 1.3..]
|
||||||
|
finishNumber()
|
||||||
if numberStart == 0:
|
if numberStart == 0:
|
||||||
numberStart = p
|
numberStart = p
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue