1 2 3 4 5 6 7 8 9 10
pub fn some_domain_in_host(domains: Option<Vec<String>>, host: &str) -> bool { if let Some(strings) = domains { for d in strings { if host.contains(&d) { return true; } } } false }