Don't provide SPDX link for custom licenses

This commit is contained in:
Elara 2022-12-21 11:22:52 -08:00
parent 42469e9ef8
commit 65e297d792
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@
<th>Licenses:</th>
<td>
{#each pkg.licenses as license, index}
<a href="https://spdx.org/licenses/{license}.html">{license}</a>{#if index+1 < pkg.licenses.length},&nbsp;{/if}
{#if license.startsWith('custom')}
{license}{#if index+1 < pkg.licenses.length},&nbsp{/if}
{:else}
<a href="https://spdx.org/licenses/{license}.html">{license}</a>{#if index+1 < pkg.licenses.length},&nbsp;{/if}
{/if}
{/each}
</td>
</tr>