pull/10190/head
jiangweidong 2023-04-10 17:32:31 +08:00 committed by Jiangjie.Bai
parent adfe4faf98
commit e4f117e753
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class PhoneValidator:
def __call__(self, value): def __call__(self, value):
try: try:
phone = phonenumbers.parse(value) phone = phonenumbers.parse(value, 'CN')
valid = phonenumbers.is_valid_number(phone) valid = phonenumbers.is_valid_number(phone)
except NumberParseException: except NumberParseException:
valid = False valid = False