Skip to content

Commit

Permalink
fix: relativePath regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Apr 19, 2024
1 parent 2bac7a8 commit e43f962
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public static String relativePath(final String parent, final String child) {
try {
final String purl = new N5URI("?" + parent).normalizeGroupPath();
final String curl = new N5URI("?" + child).normalizeGroupPath();
return new N5URI("?" + curl.replaceFirst(purl, "")).normalizeGroupPath();
return new N5URI("?" + curl.replaceFirst("^"+purl, "")).normalizeGroupPath();
} catch (final URISyntaxException e) {}
return child;
}
Expand Down

0 comments on commit e43f962

Please sign in to comment.