Skip to content

Commit

Permalink
Schema link handles no 'main' - show full url
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 6, 2024
1 parent f5b2dc6 commit 2408246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonValidator/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
Using schema{schemaUrls.length > 1 ? "s" : ""}:
{#each schemaUrls as url, i}
{i > 0 ? " and " : ""}
<a href={url} target="_blank">{url.split("main")[1]}</a>
<a href={url} target="_blank">{url.includes("main") ? url.split("main")[1] : url}</a>
{/each}

{#await promise}
Expand Down

0 comments on commit 2408246

Please sign in to comment.