fix: remove author contributing to javascript CPEs (#1669)

This commit is contained in:
Keith Zantow 2023-03-14 10:10:24 -04:00 committed by GitHub
parent cc0a376aba
commit 302735097e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -129,7 +129,6 @@ func TestGeneratePackageCPEs(t *testing.T) {
}, },
expected: []string{ expected: []string{
"cpe:2.3:a:name:name:3.2:*:*:*:*:*:*:*", "cpe:2.3:a:name:name:3.2:*:*:*:*:*:*:*",
"cpe:2.3:a:jon:name:3.2:*:*:*:*:*:*:*",
"cpe:2.3:a:bob:name:3.2:*:*:*:*:*:*:*", "cpe:2.3:a:bob:name:3.2:*:*:*:*:*:*:*",
}, },
}, },

View File

@ -13,13 +13,6 @@ func candidateVendorsForJavascript(p pkg.Package) fieldCandidateSet {
return nil return nil
} }
if metadata.Author != "" {
vendors.add(fieldCandidate{
value: normalizePersonName(stripEmailSuffix(metadata.Author)),
disallowSubSelections: true,
})
}
if metadata.URL != "" { if metadata.URL != "" {
vendors.union(candidateVendorsFromURL(metadata.URL)) vendors.union(candidateVendorsFromURL(metadata.URL))
} }