Skip to main content

extract_root_domain

Function extract_root_domain 

Source
pub fn extract_root_domain(host: &str) -> Option<String>
Expand description

Extracts the root domain from a full host (e.g., “admin.example.com” → “example.com”).