Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/io/file/PathUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static boolean equalsIgnoreFileSystem(final Path path1, final Path path2

static String extractKey(final String separator, final String string) {
// Replace the file separator in a path string with a string that is not legal in a path on Windows, Linux, and macOS.
return string.replaceAll("\\" + separator, ">");
return string.replace(separator, ">");
}

final boolean equals;
Expand Down
Loading