Skip to content

Commit 96880dc

Browse files
committed
Address broken tests
1 parent 3fbb994 commit 96880dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function searchFiles() {
8787
// Fixes issues with an escaped version string
8888
function replaceVersionEscape(purl) {
8989
//If there's an "@" in the purl, then we don't need to do anything.
90-
if (!purl?.includes("@")) {
90+
if (purl != null && purl != undefined && !purl?.includes("@")) {
9191
let index = purl.lastIndexOf("%40");
9292
if (index > 0) {
9393
purl = purl.substring(0, index) + "@" + purl.substring(index + 3);

0 commit comments

Comments
 (0)