Fix absolute and relative without parent dir paths work
This commit is contained in:
@@ -32,6 +32,12 @@ func TestNewPathFromLocal(t *testing.T) {
|
||||
href string
|
||||
local string
|
||||
}{
|
||||
{
|
||||
in: "/wiki/wiki/b/a.md",
|
||||
root: "/wiki/wiki",
|
||||
href: "/notes/b/a.md",
|
||||
local: "/wiki/wiki/b/a.md",
|
||||
},
|
||||
{
|
||||
in: "/wiki/b/a.md",
|
||||
root: "/wiki",
|
||||
|
||||
Reference in New Issue
Block a user