Allow subpaths of names of length 1
This commit is contained in:
parent
4342b79a3c
commit
e4af0fcb6d
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ proc canon(x: string; result: var string; state: var int) =
|
||||||
if d > 0: setLen(result, d-1)
|
if d > 0: setLen(result, d-1)
|
||||||
elif isDot(x, b):
|
elif isDot(x, b):
|
||||||
discard "discard the dot"
|
discard "discard the dot"
|
||||||
elif b[1] > b[0]:
|
elif b[1] >= b[0]:
|
||||||
if result.len > 0 and result[^1] != DirSep:
|
if result.len > 0 and result[^1] != DirSep:
|
||||||
result.add DirSep
|
result.add DirSep
|
||||||
result.add substr(x, b[0], b[1])
|
result.add substr(x, b[0], b[1])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue