Skip to content

Phone number +972578987732 incorrectly validated as valid in libphonenumber-js #471

@IditKedmy

Description

@IditKedmy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions