diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2012-12-02 13:21:21 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2012-12-02 13:21:21 +0000 |
commit | fa198f5be1a2867a0a2fd6972e0465cf9f8a66ff (patch) | |
tree | 19a5ecee7222e35ef408e09c44b7f36f279f62f0 /lib/pure/os.nim | |
parent | d7adc7c3289feae7de617953452eb71fb75f40da (diff) | |
download | Nim-fa198f5be1a2867a0a2fd6972e0465cf9f8a66ff.tar.gz |
Fixes SSL httpclient and problems with hidden path splitting in OS.
Added babel's libs dir to Nimrod's path.
Diffstat (limited to 'lib/pure/os.nim')
-rwxr-xr-x | lib/pure/os.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index a220c1da4..9513dbffb 100755 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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 |