Skip to content

Commit

Permalink
Fix invalid purl error (#59)
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
ksaunders authored May 16, 2024
1 parent 3afcbf6 commit 6ca2f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nowsecure-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { USER_AGENT } from "./nowsecure-client";
function encodePurl(ecosystem: string, name: string, version?: string): string {
let purl = `pkg:${ecosystem}/${name}`;
if (version) {
purl += `@${version}`;
purl += `@${encodeURIComponent(version)}`;
}

return purl;
Expand Down

0 comments on commit 6ca2f02

Please sign in to comment.