Searched refs:domain_pattern (Results 1 – 1 of 1) sorted by relevance
249 def _domain_matches(domain_name, domain_pattern): argument273 domain_pattern = domain_pattern.removeprefix('.')274 return (domain_name == domain_pattern or275 (domain_name.endswith(domain_pattern) and276 domain_name[-len(domain_pattern) - 1] == '.'))283 for domain_pattern, login in credentials.items():284 if _domain_matches(domain, domain_pattern):