Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NPM] get_purl returns None if the input is a URLs with 3 path segments: namespace, name, version #167

Closed
jloehel opened this issue Sep 10, 2024 · 1 comment

Comments

@jloehel
Copy link

jloehel commented Sep 10, 2024

if len(segments) != 2:
return

Something like this, with 3 path segments, is also possible: https://registry.npmjs.org/@esbuild/freebsd-arm64/0.21.5

Input: https://registry.npmjs.org/@esbuild/freebsd-arm64/0.21.5
Returns: None
Expected: pkg:npm/%40esbuild/[email protected]

tdruez added a commit that referenced this issue Oct 22, 2024
tdruez added a commit that referenced this issue Oct 22, 2024
@tdruez
Copy link
Collaborator

tdruez commented Oct 22, 2024

@jloehel I've added support for 3 path segments URLs in #170

It's available in the latest release at https://github.com/package-url/packageurl-python/releases/tag/v0.16.0

@tdruez tdruez closed this as completed Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants