Skip to content

al_international_phone: Use isValidPhone over isValidPhonePrecise? #314

Description

@BryceStevenWilley

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions