pub fn is_valid_domain(text: &str) -> bool