Once #315 merges, we have the option of two different validation methods: isValidPhone, and isValidPhonePrecise.
isValidPhone (previously called isPossiblePhone) just checks based on the phone number's length, and is more 'future proof'
isValidPhonePrecise (previously called isValidPhone) is the behavior this feature has used: checks that area codes and first few digits of the number are valid.
More details about the two
Even though we've been using Precise, it will and does get out of date: area codes have continued to be added, including one in 2023 (730). The intl-tel-input library has mentioned that it should be updated frequently (with area codes being added possibly monthly).
So the two questions:
- is it worth it to let
users authors choose whether to use isValidPhone or isValidPhonePrecise?
- do we switch Suffolk interviews to use
isValidPhone?
Once #315 merges, we have the option of two different validation methods:
isValidPhone, andisValidPhonePrecise.isValidPhone(previously calledisPossiblePhone) just checks based on the phone number's length, and is more 'future proof'isValidPhonePrecise(previously calledisValidPhone) is the behavior this feature has used: checks that area codes and first few digits of the number are valid.More details about the two
Even though we've been using
Precise, it will and does get out of date: area codes have continued to be added, including one in 2023 (730). Theintl-tel-inputlibrary has mentioned that it should be updated frequently (with area codes being added possibly monthly).So the two questions:
usersauthors choose whether to useisValidPhoneorisValidPhonePrecise?isValidPhone?