def included_in_wildcard(self, names, target_name):
        target_name = target_name.split(".")[::-1]
        wildcards = [domain.split(".")[1:] for domain in
                     names if domain.startswith("*")]
        for wildcard in wildcards:
            if len(wildcard) > len(target_name):
                continue
            for idx, segment in enumerate(wildcard[::-1]):
                if segment != target_name[idx]:
                    break
            else:
                # https://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops
                return True
        return False
Helper function to see if alias is covered by wildcard
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-apache/certbot_apache/configurator.py/ApacheConfigurator.included_in_wildcard