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

feat: add local country code #4

Merged

Conversation

cryptus-neoxys
Copy link
Contributor

@cryptus-neoxys cryptus-neoxys commented Nov 1, 2021

Resolves #1
Added functionality to fetch and add country code using geolocation-db's API.
The current implementation checks for a country code ie a '+' symbol in the beginning of phone no. and if not found calls the API to automatically prepend the local country code to the string used for opening whatsapp's message URL.

Tested on Chrome with preview URL: prev-url

Copy link
Owner

@iamyajat iamyajat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@iamyajat iamyajat merged commit 68c152d into iamyajat:main Nov 2, 2021
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.

No validation of Country Code.
2 participants