INNER CODE UNIT · Rust

normalize_url

Drew-Alleman/DataSurgeon · src/utils/mod.rs:69

pub fn normalize_url(url: &str) -> String {
    url.to_lowercase().trim_end_matches('/').replace("https://", "").replace("http://", "")
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…