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

Issue with phone numbers starting with 0 #43

Open
axmusic opened this issue Mar 27, 2023 · 1 comment
Open

Issue with phone numbers starting with 0 #43

axmusic opened this issue Mar 27, 2023 · 1 comment
Assignees

Comments

@axmusic
Copy link

axmusic commented Mar 27, 2023

Trying to Add phone numbers starting with 0, like 0749862145

But it is not working, It is skipping 0

Using the latest version 0.6.0

@joaocarmo joaocarmo self-assigned this Oct 20, 2023
@joaocarmo joaocarmo added the bug label Oct 20, 2023
@joaocarmo
Copy link
Owner

@axmusic are you adding 0749862145 as a number type or as a string? number decimals cannot start with a leading 0 so it gets removed automatically by the JavaScript engine. Did you try to pass it as a string? It should work that way. As you can see from the tests:

.addPhoneNumber('0123456789', 'HOME')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants