Skip to main content

extract_hostname

Function extract_hostname 

Source
pub fn extract_hostname(input: &str) -> Option<String>
Expand description

Extract hostname from a URL-like git source string.

Removes scheme, user info, port, and path; returns only the host.