diff --git a/packageurl.go b/packageurl.go index 5177228..c0d46fc 100644 --- a/packageurl.go +++ b/packageurl.go @@ -566,7 +566,6 @@ func typeAdjustNamespace(purlType, ns string) string { TypeDebian, TypeGithub, TypeGolang, - TypeNPM, TypeRPM, TypeQpkg: return strings.ToLower(ns) diff --git a/packageurl_test.go b/packageurl_test.go index 6fa8c8d..9624228 100644 --- a/packageurl_test.go +++ b/packageurl_test.go @@ -515,12 +515,12 @@ func TestNormalize(t *testing.T) { }, { name: "known type namespace adjustments", input: packageurl.PackageURL{ - Type: "npm", + Type: "apk", Namespace: "NaMeSpAcE", Name: "pkg", }, want: packageurl.PackageURL{ - Type: "npm", + Type: "apk", Namespace: "namespace", Name: "pkg", Qualifiers: packageurl.Qualifiers{},