Address broken tests

This commit is contained in:
Justin Hutchings
2022-10-04 15:59:26 -07:00
parent 3fbb9947d1
commit 96880dc2ca
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -21924,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 != null && purl != undefined && !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
+1 -1
View File
@@ -87,7 +87,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 != null && purl != undefined && !purl?.includes("@")) {
let index = purl.lastIndexOf("%40");
if (index > 0) {
purl = purl.substring(0, index) + "@" + purl.substring(index + 3);