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

Phone Parser bad result #134

Open
RobinRim opened this issue Apr 18, 2024 · 0 comments
Open

Phone Parser bad result #134

RobinRim opened this issue Apr 18, 2024 · 0 comments

Comments

@RobinRim
Copy link

When use TelephoneNumber.parse("621791146") the phone number is identified as an Indonesian number by default
But in this case, it's a Luxembourg number
Here, it confuses the Indonesian country code with a number base valid in 62 Luxembourg.

TelephoneNumber.parse("621791146")
#<TelephoneNumber::Number:0x00005555837144f8 @original_number="621791146", @country=#<TelephoneNumber::Country:0x00005555842b8ef8 @country_code="62", @country_id="ID", ...
TelephoneNumber.parse("621791146").e164_number
# "+62621791146"

TelephoneNumber.parse("621791146", :LU).e164_number
# "+352621791146"
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