check_phone_bug

This commit is contained in:
曹前明 2022-09-22 10:40:20 +08:00
parent d24a265b1d
commit abe2fa2f76
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ def check_id_number(idcard):
def check_phone_e(phone): def check_phone_e(phone):
re_phone = r'/^1\d{10}$/' re_phone = r'^1\d{10}$'
if not re.match(re_phone, phone): if not re.match(re_phone, phone):
raise ValidationError('手机号格式错误') raise ValidationError('手机号格式错误')
return phone return phone