Fix bug in removeDotSegments when path ends with dot (#17038) [backport:1.2]
This commit is contained in:
parent
240879bf3d
commit
8f54d3b792
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ func removeDotSegments(path: string): string =
|
||||||
discard collection.pop()
|
discard collection.pop()
|
||||||
i.inc 3
|
i.inc 3
|
||||||
continue
|
continue
|
||||||
elif path[i+1] == '/':
|
elif i + 1 < path.len and path[i+1] == '/':
|
||||||
i.inc 2
|
i.inc 2
|
||||||
continue
|
continue
|
||||||
currentSegment.add path[i]
|
currentSegment.add path[i]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue