Closed matt-phylum closed 2 months ago
@matt-phylum Thanks for the find! This happens because in v2 normalization is consistent across constructor and fromString. In v1.x PackageURL.fromString("pkg:general/100%/test")
would throw a similar error (because of decodeURIComponent
use).
PR at #76.
Closed by #76
v2.0.1
published to npmjs: https://www.npmjs.com/package/packageurl-js/v/2.0.1 with this fix included.
Or worse if the percent sign is followed by two or more hex characters:
It only works correctly for qualifier values: