Skip to content

The phone number parsing #845

@Peltoche

Description

@Peltoche

Hello 👋

In order to improve the presentation, the merging function and the storage it would be great to be able to parse the phone numbers and save them into the same format. The issue is that the phone number format can become really complicated.

Here is a link to a great blog post explaining the issues and the possible solutions: https://www.sitepoint.com/working-phone-numbers-javascript/ .

I find the recommandations at the end really good and I hope we would be able to implement some. For the people who don't have the time to read the articles the recommandations are:

  • Unless you only operate in a single country, be aware of the international differences.
  • Use masked inputs with caution.
  • Be very careful with regular expression-based validation.
  • Where possible, use E.164 for storage.
  • Use Google’s libphonenumber library.
  • When displaying numbers, format them where possible, use the tel: or callto: link type, and use Microdata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions