packageurl-js
packageurl-js copied to clipboard
Incorrect parsing of PURLs begining with `pkg://`
The PURL test suite contains the PURL pkg://maven/org.apache.commons/io which is supposed to parse as a namespace of org.apache.commons and a name of io, but packageurl-js parses it as having no namespace. The namespace just disappears. It doesn't become part of the name.
Raised https://github.com/package-url/packageurl-js/pull/62 to fix this
Cannot reproduce bug given the example above: https://github.com/package-url/packageurl-js/pull/62#issuecomment-2115067509
This is still reproducible with the given example.
Ah, my bad. @matt-phylum you are correct.
Fixed in master branch.