3 ms·
One huge problem with this is that you need to normalize every phone number. Lots of people enter local numbers without country code, and you need to know the c
by ianburrell 2y ago
One huge problem with this is that you need to normalize every phone number. Lots of people enter local numbers without country code, and you need to know the country.
For most phone numbers, you just need to round trip them. They will be presented in the same context. It is better to store ambiguous numbers as entered, along with context, and let human figure it out than mess up.
- doctor_eval 2y agoIt's trivially easy to deal with this on input, for example using https://intl-tel-input.com https://intl-tel-input.com > For most phone numbers, you just need to round trip them That would be a great entry in a book, "myths developers believe about phone numbers".