Skip to content

Commit

Permalink
fix: support references with slashes. (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Jan 25, 2024
1 parent cdbf260 commit abc3c23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/dev/jbang/catalog/ImplicitCatalogRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ public static ImplicitCatalogRef parse(String name) {
} else {
path = "";
}
String[] names = parts[0].split("/");
if (names.length > 3) {
return null;
}
String[] names = parts[0].split("/", 3);
String org = names[0];
String repo;
if (names.length >= 2 && !names[1].isEmpty()) {
Expand Down

0 comments on commit abc3c23

Please sign in to comment.