From c67bc33c23dd20e59a40643bfd82b5746ee1bdfe Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Wed, 11 Jan 2023 13:10:59 -0800 Subject: [PATCH] Fix custom license erroring with spaces (#905) --- pages/_type/_id/settings/license.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/_type/_id/settings/license.vue b/pages/_type/_id/settings/license.vue index 3d58f2f97..85e8d4a18 100644 --- a/pages/_type/_id/settings/license.vue +++ b/pages/_type/_id/settings/license.vue @@ -193,8 +193,8 @@ export default { id += this.license.short if (this.license.requiresOnlyOrLater) id += this.allowOrLater ? '-or-later' : '-only' - if (this.nonSpdxLicense && this.license.short === 'Custom') - id.replaceAll(' ', '-') + if (this.nonSpdxLicense && this.license.friendly === 'Custom') + id = id.replaceAll(' ', '-') return id }, defaultLicenses() {