def regex_check()

in scancode/scanCode.py [0:0]


def regex_check(line):
    """Assert line does not contain strings matching regex. expressions."""
    # vprint("regex pattern: " + str(regex_patterns))
    for pattern in regex_patterns:
        if re.search(pattern, line):
            return ERR_REGEX % (pattern, line)
        else:
            return None