def match(command):
    is_proper_command = (('brew' in command.script) and ('Unknown command' in command.output))
    if is_proper_command:
        broken_cmd = re.findall('Error: Unknown command: ([a-z]+)', command.output)[0]
        return bool(get_closest(broken_cmd, _brew_commands()))
    return False
def match(command):
    is_proper_command = (('brew' in command.script) and ('Unknown command' in command.output))
    if is_proper_command:
        broken_cmd = re.findall('Error: Unknown command: ([a-z]+)', command.output)[0]
        return bool(get_closest(broken_cmd, _brew_commands()))
    return False