Skip to content

Commit

Permalink
Fixing failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
staudtMarius committed Jun 20, 2023
1 parent 2c9e1de commit 38e0377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/edu/ie3/datamodel/io/IoUtil.java
Expand Up @@ -43,8 +43,7 @@ public static Path harmonizeFileSeparator(Path path) {
in = in.replaceFirst("^" + IoUtil.FILE_SEPARATOR_REGEX, "");
}

return Path.of(
IoUtil.harmonizeFileSeparator(in.replaceAll(IoUtil.FILE_SEPARATOR_REGEX + "$", "")));
return Path.of(IoUtil.harmonizeFileSeparator(in));
}

/**
Expand Down

0 comments on commit 38e0377

Please sign in to comment.