Address broken tests
This commit is contained in:
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@@ -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);
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
index.js
2
index.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user