Closed rowanseymour closed 4 months ago
Attention: Patch coverage is 90.90909%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 46.81%. Comparing base (
2aea864
) to head (bf96e96
).
Files | Patch % | Lines |
---|---|---|
phonenumbers.go | 90.90% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi,
are you sure this is correct? Before this update +5214424123123 rendered as +524424123123 (the first "1" is gone). "+524424123123" also renders to that version (so it stays the same). The "521" prefix is an old one which is not in use anymore.
Random reference from the Interwebs:
https://www.jaxcom.net/blog/important-changes-to-mexico-521-dialing-pattern/ All calls to Mexico mobile phones: Will no longer need the prefix of ‘521’ followed by the phone number. Must strictly be dialed as ’52’ followed by the phone number.
edit: actually was probably changed in #175
Hi @alicebob if you think there's a parsing problem please confirm the problem doesn't also exist in https://github.com/googlei18n/libphonenumber
Even worse, that one rejects it with the 1:
https://libphonenumber.appspot.com/phonenumberparser?number=%2B524424123123 E164 format: +524424123123
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5214424123123 E164 format: invalid
(This version of nyaruka accepts the one, and an older one dropped it)
Please report that then as an issue on that library as we are just a port of that and use their metadata
On Tue, Jul 23, 2024 at 07:44:04AM -0700, Rowan Seymour wrote:
Please report that then as an issue on that library as we are just a port of that and use their metadata
But nyaruka should also reject it, currently it doesn't.
I agree but we are using their metadata, so it needs to be fixed there first
thanks @rowanseymour . I made a separate issue, instead of talking in a closed PR.
Addresses https://github.com/nyaruka/phonenumbers/issues/173