Skip to content

Commit

Permalink
Merge branch '6.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Jun 11, 2024
2 parents 68e6b15 + 6b7f0bd commit 720b7c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public abstract class StringUtils {

private static final String WINDOWS_FOLDER_SEPARATOR = "\\";

private static final String DOUBLE_BACKLASHES = "\\\\";
private static final String DOUBLE_BACKSLASHES = "\\\\";

private static final String TOP_PATH = "..";

Expand Down Expand Up @@ -713,7 +713,7 @@ public static String cleanPath(String path) {
String normalizedPath;
// Optimize when there is no backslash
if (path.indexOf('\\') != -1) {
normalizedPath = replace(path, DOUBLE_BACKLASHES, FOLDER_SEPARATOR);
normalizedPath = replace(path, DOUBLE_BACKSLASHES, FOLDER_SEPARATOR);
normalizedPath = replace(normalizedPath, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR);
}
else {
Expand Down

0 comments on commit 720b7c1

Please sign in to comment.