Skip to content

Commit

Permalink
Fix invalid purl error
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
Keegan Saunders committed May 16, 2024
1 parent 3afcbf6 commit a04e8de
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 a04e8de

Please sign in to comment.