diff options
author | Jörg Wollenschläger <joerg.wollenschlaeger@gmail.com> | 2018-09-15 20:22:04 +0900 |
---|---|---|
committer | Jörg Wollenschläger <joerg.wollenschlaeger@gmail.com> | 2018-09-15 20:22:04 +0900 |
commit | e4af0fcb6dc2e6d90a89708a1cae0edbeb0b30e4 (patch) | |
tree | b1e17ec75a492974bdfc56e47cb8c190fb2bc55d /compiler/pathutils.nim | |
parent | 4342b79a3c05fcfb1e6fc97152daa0075b0b9603 (diff) | |
download | Nim-e4af0fcb6dc2e6d90a89708a1cae0edbeb0b30e4.tar.gz |
Allow subpaths of names of length 1
Diffstat (limited to 'compiler/pathutils.nim')
-rw-r--r-- | compiler/pathutils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pathutils.nim b/compiler/pathutils.nim index ef0fa4abd..03fcfe07e 100644 --- a/compiler/pathutils.nim +++ b/compiler/pathutils.nim @@ -114,7 +114,7 @@ proc canon(x: string; result: var string; state: var int) = if d > 0: setLen(result, d-1) elif isDot(x, b): discard "discard the dot" - elif b[1] > b[0]: + elif b[1] >= b[0]: if result.len > 0 and result[^1] != DirSep: result.add DirSep result.add substr(x, b[0], b[1]) |