MCPcopy Create free account
hub / github.com/adobe/Marinus / check_zones

Function check_zones

python3_cron_scripts/common_crawl_graph.py:92–99  ·  view source on GitHub ↗

Check if the provided domain exists within the zone

(domain, zones)

Source from the content-addressed store, hash-verified

90
91
92def check_zones(domain, zones):
93 """
94 Check if the provided domain exists within the zone
95 """
96 for zone in zones:
97 if domain == zone or domain.startswith(zone + "."):
98 return zone
99 return None
100
101
102def swap_order(value):

Callers 1

parse_fileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected