

def _is_viable_phone_number(number):
    'Checks to see if a string could possibly be a phone number.\n\n    At the moment, checks to see that the string begins with at least 2\n    digits, ignoring any punctuation commonly found in phone numbers.  This\n    method does not require the number to be normalized in advance - but does\n    assume that leading non-number symbols have been removed, such as by the\n    method _extract_possible_number.\n\n    Arguments:\n    number -- string to be checked for viability as a phone number\n\n    Returns True if the number could be a phone number of some sort, otherwise\n    False\n    '
    if (len(match) < _MIN_LENGTH_FOR_NSN):
        return False
    match = fullmatch(_VALID_PHONE_NUMBER_PATTERN, number)
    return bool(match)

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py _is_viable_phone_number/VarMisuse@16/248 `number`->`match`