catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.8k stars 216 forks source link

Different Results | Real Life vs Demo #449

Closed orangehaired closed 1 year ago

orangehaired commented 1 year ago

Hi,

When testing a number in the demo it claims that it is not valid. In my code, it claims to be valid. I'm not sure if this is a bug or my fault.

Demo: - Full Image: https://i.ibb.co/6srDxWj/Screenshot-2023-11-10-at-00-45-35.png

Production Code: Full Image: https://i.ibb.co/pWXcD2g/Screenshot-2023-11-10-at-00-46-13.png

catamphetamine commented 1 year ago

Maybe you’re using not the /max metadata

On Fri, 10 Nov 2023 at 01:10, Ahmet Tarik GUNAL @.***> wrote:

Hi,

When testing a number in the demo it claims that it is not valid. In my code, it claims to be valid. I'm not sure if this is a bug or my fault.

Demo:

https://camo.githubusercontent.com/5cb491e2377314ae13f18e21e7871a95be2f478e860a7317952686adea338133/68747470733a2f2f692e6962622e636f2f3673724478576a2f53637265656e73686f742d323032332d31312d31302d61742d30302d34352d33352e706e67

Production Code:

https://camo.githubusercontent.com/3ca13307298f867fc431dc21bdb114e12c75fdaccab630d7b8910a606d7b2b05/68747470733a2f2f692e6962622e636f2f705758634432672f53637265656e73686f742d323032332d31312d31302d61742d30302d34362d31332e706e67

— Reply to this email directly, view it on GitHub https://github.com/catamphetamine/libphonenumber-js/issues/449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUP34DREFX7JA3CWSUKNTYDVIE3AVCNFSM6AAAAAA7FIN46SVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DMNBYGEYTEOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

orangehaired commented 1 year ago

Worked with max metadata. Thx @catamphetamine