diff --git a/src/main/java/dev/jbang/catalog/ImplicitCatalogRef.java b/src/main/java/dev/jbang/catalog/ImplicitCatalogRef.java index b456f6bad..60ccaf73f 100644 --- a/src/main/java/dev/jbang/catalog/ImplicitCatalogRef.java +++ b/src/main/java/dev/jbang/catalog/ImplicitCatalogRef.java @@ -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()) {