import functools
import operator


def _has_pattern_match(name: str, patterns) -> bool:
    """Check if name matches any of the patterns"""
    return functools.reduce(
        operator.or_,
        map(lambda r: r.search(name) is not None, patterns),
        False)