Merge branch 'main' of https://github.com/GSA/notifications-admin into 2481-landing-page-standalone-without-api

This commit is contained in:
Jonathan Bobel
2025-04-16 11:23:07 -04:00
8 changed files with 400 additions and 237 deletions

View File

@@ -608,8 +608,6 @@ def validate_phone_number(number, international=False):
try:
parsed = phonenumbers.parse(number, None)
if parsed.country_code != 1:
raise InvalidPhoneError("Invalid country code")
number = f"{parsed.country_code}{parsed.national_number}"
if len(number) < 8:
raise InvalidPhoneError("Not enough digits")