Fixes SSL httpclient and problems with hidden path splitting in OS.

Added babel's libs dir to Nimrod's path.
This commit is contained in:
Dominik Picheta 2012-12-02 13:21:21 +00:00
commit fa198f5be1
3 changed files with 23 additions and 13 deletions

View file

@ -554,7 +554,8 @@ proc splitFile*(path: string): tuple[dir, name, ext: string] {.
var dotPos = path.len
for i in countdown(len(path)-1, 0):
if path[i] == ExtSep:
if dotPos == path.len and i > 0: dotPos = i
if dotPos == path.len and i > 0 and
path[i-1] notin {dirsep, altsep}: dotPos = i
elif path[i] in {dirsep, altsep}:
sepPos = i
break