Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The phone number parsing #845

Open
Peltoche opened this issue Nov 17, 2021 · 0 comments
Open

The phone number parsing #845

Peltoche opened this issue Nov 17, 2021 · 0 comments

Comments

@Peltoche
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant