Fix custom license erroring with spaces (#905)
This commit is contained in:
1 parent
bb80dcb4e4
commit
c67bc33c23
1 file changed
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user