make more tests green
This commit is contained in:
parent
f4c21305a9
commit
b899713832
2 changed files with 3 additions and 3 deletions
|
|
@ -196,7 +196,7 @@ proc joinPath*(head, tail: string): string {.
|
|||
else:
|
||||
result = head & tail
|
||||
else:
|
||||
if tail[0] in {DirSep, AltSep}:
|
||||
if tail.len > 0 and tail[0] in {DirSep, AltSep}:
|
||||
result = head & tail
|
||||
else:
|
||||
result = head & DirSep & tail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue