def validate_line()

in fuzzing/tools/dict_validation.py [0:0]


def validate_line(line):
    """Validates a single line in the fuzzing dictionary entry.

    Args:
        line: a string containing a single line in the fuzzing dictionary.

    Returns:
        True if the argument is allowed to exist in a fuzzing dictionary, 
        otherwise False.
    """
    line = line.strip()
    if not line or line.startswith('#'):
        return True
    else:
        return re.fullmatch(_DICTIONARY_LINE_RE, line) is not None