We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfefdf commit cdea937Copy full SHA for cdea937
src/models/license.ts
@@ -25,7 +25,10 @@ import type { Attachment } from './attachment'
25
export class LicenseExpression {
26
static isEligibleExpression (expression: string | any): boolean {
27
// smallest known: (A or B)
28
- // TODO: use a better detection - maybe validate via https://www.npmjs.com/package/spdx-expression-parse
+ /* TODO: use a better detection.
29
+ * maybe validate via https://www.npmjs.com/package/spdx-expression-parse
30
+ * see https://github.com/CycloneDX/cyclonedx-javascript-library/issues/271
31
+ */
32
return typeof expression === 'string' &&
33
expression.length >= 8 &&
34
expression[0] === '(' &&
0 commit comments