Skip to main content

normalize_purl

Function normalize_purl 

Source
pub fn normalize_purl(purl: &str) -> String
Expand description

Normalize a PURL string according to its type’s spec rules.

Per-type case/canonicalization rules are applied to the namespace and name; version, qualifiers, and subpath are preserved. Unparsable input and types with no rule are returned unchanged, so already-canonical PURLs never churn.