Skip to content

Commit

Permalink
Revert "Fix invalid purl error (#59)" (#60)
Browse files Browse the repository at this point in the history
This reverts commit 6ca2f02.
  • Loading branch information
Keegan Saunders authored May 16, 2024
1 parent 6ca2f02 commit 612dec6
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 += `@${encodeURIComponent(version)}`;
purl += `@${version}`;
}

return purl;
Expand Down

0 comments on commit 612dec6

Please sign in to comment.