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

Parses invalid Australian phone numbers as valid #43

Open
behelit opened this issue May 26, 2023 · 0 comments
Open

Parses invalid Australian phone numbers as valid #43

behelit opened this issue May 26, 2023 · 0 comments

Comments

@behelit
Copy link

behelit commented May 26, 2023

Hello,
I parse an Australian phone number like "+61401118888" correctly, then I try adding 6 digits to the number and it still parses as valid.
How is this possible?
For example: "+61401118888123456"

val phoneNumber = phoneUtil.parse(input, Locale.getDefault().country)
        return phoneUtil.format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.E164)
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