mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fix path normalizer bug
This commit is contained in:
parent
a14b513b59
commit
a43da54f95
2 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,7 @@ namespace LibHac.Fs
|
|||
|
||||
case NormalizeState.Initial:
|
||||
isNormalized = false;
|
||||
state = NormalizeState.Delimiter;
|
||||
state = NormalizeState.Normal;
|
||||
|
||||
sb.Append(DirectorySeparator);
|
||||
sb.Append(c);
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace LibHac.Tests
|
|||
new object[] {"/./aaa/bbb/ccc/.", "/aaa/bbb/ccc"},
|
||||
|
||||
new object[] {"/a/b/c/", "/a/b/c/"},
|
||||
new object[] {"a/b/c/", "/a/b/c/"},
|
||||
new object[] {"/aa/./bb/../cc/", "/aa/cc/"},
|
||||
new object[] {"/./b/../c/", "/c/"},
|
||||
new object[] {"/a/../../../", "/"},
|
||||
|
|
Loading…
Reference in a new issue