Don't provide SPDX link for custom licenses
This commit is contained in:
parent
42469e9ef8
commit
65e297d792
@ -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}, {/if}
|
||||
{#if license.startsWith('custom')}
|
||||
{license}{#if index+1 < pkg.licenses.length}, {/if}
|
||||
{:else}
|
||||
<a href="https://spdx.org/licenses/{license}.html">{license}</a>{#if index+1 < pkg.licenses.length}, {/if}
|
||||
{/if}
|
||||
{/each}
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user