Skip to main content

normalize

Function normalize 

Source
pub fn normalize(input: &str) -> String
Expand description

Normalizes a user-supplied base path into a canonical form: an empty string for “no prefix”, otherwise a single leading slash and no trailing slash.

""/"/""", "dashboard"/"/dashboard/"/"//dashboard//""/dashboard".