mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Fix path normalizer bug
This commit is contained in:
parent
a14b513b59
commit
a43da54f95
@ -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…
x
Reference in New Issue
Block a user