Skip to content

Commit 38e0377

Browse files
committed
Fixing failing tests.
1 parent 2c9e1de commit 38e0377

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/edu/ie3/datamodel/io/IoUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public static Path harmonizeFileSeparator(Path path) {
4343
in = in.replaceFirst("^" + IoUtil.FILE_SEPARATOR_REGEX, "");
4444
}
4545

46-
return Path.of(
47-
IoUtil.harmonizeFileSeparator(in.replaceAll(IoUtil.FILE_SEPARATOR_REGEX + "$", "")));
46+
return Path.of(IoUtil.harmonizeFileSeparator(in));
4847
}
4948

5049
/**

0 commit comments

Comments
 (0)