relativePath("foo", "foo") is now ".", not "" (#13452)
This commit is contained in:
parent
1276e386fe
commit
a43583f9c8
6 changed files with 37 additions and 8 deletions
7
tests/js/tos.nim
Normal file
7
tests/js/tos.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
static: doAssert defined(nodejs)
|
||||
|
||||
import os
|
||||
|
||||
block:
|
||||
doAssert "./foo//./bar/".normalizedPath == "foo/bar"
|
||||
doAssert relativePath(".//foo/bar", "foo") == "bar"
|
||||
Loading…
Add table
Add a link
Reference in a new issue