Skip to main content

normalize_uri

Function normalize_uri 

Source
pub fn normalize_uri(path_str: &str) -> String
Expand description

Normalize a path string to a valid URI: forward slashes and percent-encoded brackets.

Brackets ([, ]) are not valid in URI path segments per RFC 3986 and cause SARIF validation warnings (e.g., Next.js dynamic routes like [slug]).