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.76k stars 218 forks source link

Leading 0 is removed for Brazilian numbers #465

Closed iqHpi closed 1 month ago

iqHpi commented 1 month ago
$ console.log(parsePhoneNumber('+55 0-800-5700800').number)
+558005700800

Expected output is +5508005700800

catamphetamine commented 1 month ago

That's the expected behavior

iqHpi commented 1 month ago

But the number can't receive international calls when the leading 0 is removed.

@catamphetamine

catamphetamine commented 1 month ago

In that case, see https://github.com/catamphetamine/libphonenumber-js?tab=readme-ov-file#bug-reporting

On Sun, 7 Jul 2024 at 03:40, Iqbal Hossain @.***> wrote:

But the number can't receive international calls when the leading 0 is removed.

— Reply to this email directly, view it on GitHub https://github.com/catamphetamine/libphonenumber-js/issues/465#issuecomment-2212070612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUP372XBXNSGZ3M63NCMLZLCE7XAVCNFSM6AAAAABKKMOWUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGA3TANRRGI . You are receiving this because you modified the open/close state.Message ID: @.***>