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?