This commit is contained in:
Justin Hutchings
2022-10-04 15:38:47 -07:00
parent c67c887e46
commit 3fbb9947d1
4 changed files with 5 additions and 12 deletions
Generated Vendored
+2 -1
View File
@@ -21880,6 +21880,7 @@ function getManifestFromSpdxFile(document, fileName) {
document.packages?.forEach(pkg => {
let packageName = pkg.name;
let packageVersion = pkg.packageVersion;
// SPDX 2.3 defines a purl field
let purl = pkg.purl;
@@ -21923,7 +21924,7 @@ function searchFiles() {
// Fixes issues with an escaped version string
function replaceVersionEscape(purl) {
//If there's an "@" in the purl, then we don't need to do anything.
if (!purl.includes("@")) {
if (!purl?.includes("@")) {
let index = purl.lastIndexOf("%40");
if (index > 0) {
purl = purl.substring(0, index) + "@" + purl.substring(index + 3);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long