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

fix: better phone number handling #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ericrallen
Copy link

@ericrallen ericrallen commented Feb 8, 2024

This adds improved phone number detection via libphonenumber-js which is based on google/libphonenumber.

It also adds support for displaying multiple phone numbers if they are detected.

Note: There are still some challenges around international phone numbers without the preceding + but we now try to use the browser's locale to set the expected country code and then also use the US country code to try to maximize detected phone numbers.

Closes #1

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

Successfully merging this pull request may close these issues.

function isPhoneNumber regex
1 participant