Skip to main content

normalize_site

Function normalize_site 

Source
pub fn normalize_site(raw: &str) -> String
Expand description

Normalises a user-supplied site string.

Strips any https:// or http:// scheme, any api. subdomain prefix (users sometimes paste the full API host), and trailing slashes.