Skip to content

Commit

Permalink
fix drive case error 2
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Aug 8, 2024
1 parent 2e85379 commit ef52fc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private static String relativizeInternal(String rootPath, String longerThanRootP
public static String fixDriveCase(String path) {
if (path == null || path.length() < 2) return path;
if (Character.isLowerCase(path.charAt(0)) && path.charAt(1) == ':') {
return Character.toUpperCase(path.charAt(0)) + ':' + path.substring(2);
return Character.toUpperCase(path.charAt(0)) + ":" + path.substring(2);
}
return path;
}
Expand Down

0 comments on commit ef52fc7

Please sign in to comment.