Skip to content

Commit

Permalink
handle refs without prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback authored Feb 9, 2024
1 parent b3b2f53 commit 190b7b7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public static MessageReference toSchema(String schemaName) {
}

public static String extractRefName(String ref) {
return ref.substring(ref.lastIndexOf('/') + 1);
if(ref.contains("/")) {
return ref.substring(ref.lastIndexOf('/') + 1);
}
return ref;
}
}

0 comments on commit 190b7b7

Please sign in to comment.