parent
13d292786e
commit
3dad130034
4 changed files with 10 additions and 2 deletions
|
|
@ -69,7 +69,8 @@ proc addNormalizePath*(x: string; result: var string; state: var int;
|
|||
while hasNext(it, x):
|
||||
let b = next(it, x)
|
||||
if (state shr 1 == 0) and isSlash(x, b):
|
||||
result.add dirSep
|
||||
if result.len == 0 or result[^1] notin {DirSep, AltSep}:
|
||||
result.add dirSep
|
||||
state = state or 1
|
||||
elif isDotDot(x, b):
|
||||
if (state shr 1) >= 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue