giggsey / libphonenumber-for-php

PHP version of Google's phone number handling library
https://giggsey.com/libphonenumber/
Apache License 2.0
4.76k stars 468 forks source link

Support for GS and DG ISO Alpha Code metadata #619

Closed Migue8gl closed 8 months ago

Migue8gl commented 8 months ago

DG and GS are valid ISO codes with their data for phone validation and the tool does not handle validation for these ISOs, using the parse function returns error implying that it is not a valid region.

giggsey commented 8 months ago

I'd assume it's the same reason as this part of Google's FAQ: https://github.com/google/libphonenumber/blob/master/FAQ.md#why-are-bouvet-island-bv-pitcairn-island-pn-antarctica-aq-etc-not-supported

The calling code for GS (+500) is the same as the Falkland Islands.

Migue8gl commented 8 months ago

Thanks for your quick reply, it make sense to me.