You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
On Thu, 10 Oct 2024 at 21:47, IditKedmy ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#471>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADUP34CTBRC4DQ4HXNTGTDZ23DTZAVCNFSM6AAAAABPXM6NVGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3TSNJYGYZTQOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
The phone number
+972578987732
is being marked as valid by thelibphonenumber-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:
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?
The text was updated successfully, but these errors were encountered: