Improve performance of StringUtils#cleanPath
This commit is contained in:
committed by
Juergen Hoeller
parent
ac0363c94e
commit
1c6dda3ca4
@@ -399,6 +399,7 @@ class StringUtilsTests {
|
||||
assertThat(StringUtils.cleanPath("file:../")).isEqualTo("file:../");
|
||||
assertThat(StringUtils.cleanPath("file:./../")).isEqualTo("file:../");
|
||||
assertThat(StringUtils.cleanPath("file:.././")).isEqualTo("file:../");
|
||||
assertThat(StringUtils.cleanPath("file:/mypath/spring.factories")).isEqualTo("file:/mypath/spring.factories");
|
||||
assertThat(StringUtils.cleanPath("file:///c:/some/../path/the%20file.txt")).isEqualTo("file:///c:/path/the%20file.txt");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user