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 number +972578987732 incorrectly validated as valid in libphonenumber-js #471

Open
IditKedmy opened this issue Oct 10, 2024 · 1 comment

Comments

@IditKedmy
Copy link

The phone number +972578987732 is being marked as valid by the libphonenumber-js library, but it's invalid according to Google's official libphonenumber demo tool.

In my React TypeScript project I as using the latest version of this library:

  • libphonenumber-js version: 1.11.11
  • Reproduction:

const libPhone = await import('libphonenumber-js');

const phoneNumber = libPhone.parsePhoneNumber('+972578987732');
console.log(phoneNumber.isValid()); // Expected: false, but got: true

Am I doing something wrong here?

@catamphetamine
Copy link
Owner

catamphetamine commented Oct 10, 2024 via email

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

2 participants