Fix issues geo discovered (#818)
This commit is contained in:
parent
7408d7bc95
commit
7a105a1538
@ -697,7 +697,9 @@ export default {
|
|||||||
(x) => x.short === trimmedLicenseId
|
(x) => x.short === trimmedLicenseId
|
||||||
) ?? { friendly: 'Custom', short: licenseId.replaceAll('LicenseRef-', '') }
|
) ?? { friendly: 'Custom', short: licenseId.replaceAll('LicenseRef-', '') }
|
||||||
this.allowOrLater = licenseId.includes('-or-later')
|
this.allowOrLater = licenseId.includes('-or-later')
|
||||||
this.nonSpdxLicense = licenseId.includes('LicenseRef-')
|
this.nonSpdxLicense =
|
||||||
|
licenseId.includes('LicenseRef-') &&
|
||||||
|
this.license.short !== 'All-Rights-Reserved'
|
||||||
|
|
||||||
this.clientSideType =
|
this.clientSideType =
|
||||||
this.newProject.client_side.charAt(0) +
|
this.newProject.client_side.charAt(0) +
|
||||||
@ -718,7 +720,7 @@ export default {
|
|||||||
id += this.license.short
|
id += this.license.short
|
||||||
|
|
||||||
if (this.license.requiresOnlyOrLater)
|
if (this.license.requiresOnlyOrLater)
|
||||||
id += this.allowOrLater ? 'or-later' : '-only'
|
id += this.allowOrLater ? '-or-later' : '-only'
|
||||||
|
|
||||||
if (this.nonSpdxLicense) id.replaceAll(' ', '-')
|
if (this.nonSpdxLicense) id.replaceAll(' ', '-')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user