Skip to main content

normalise_url

Function normalise_url 

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

Normalise user-typed address-bar input into a loadable URL: pass through explicit schemes, otherwise treat input with spaces or without dots as a search query and everything else as an https:// host.