Skip to content

Commit

Permalink
Merge pull request #13 from anchore/chore/update-upstream
Browse files Browse the repository at this point in the history
Update to upstream packageurl-go main branch
  • Loading branch information
spiffcs authored Jan 4, 2023
2 parents 02e0a67 + 2ff4b62 commit 2e0816d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packageurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func (p *PackageURL) ToString() string {
purl = purl + strings.Join(ns, "/") + "/"
}
// The name is always required and must be a percent-encoded string
// Use custom pathEscape instead of PathEscape, as it handles @ signs
purl = purl + pathEscape(p.Name)
// If a version is provided, add it after the at symbol
if p.Version != "" {
Expand Down

0 comments on commit 2e0816d

Please sign in to comment.