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

Question: Why is the format for phone numbers limited to US? #135

Open
berthin opened this issue Jan 15, 2025 · 0 comments
Open

Question: Why is the format for phone numbers limited to US? #135

berthin opened this issue Jan 15, 2025 · 0 comments

Comments

@berthin
Copy link

berthin commented Jan 15, 2025

Hi,

I was wondering why is the format only supporting numbers from US/Canada? It could just be more generic right?

// Simple phone regex that matches (xxx)-xxx-xxxx where () and - are optional, - can also be space

You could take a look at this: https://www.npmjs.com/package/libphonenumber-js

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