Closed dr3 closed 4 years ago
Hi.
First, the country calling code is +1
, not +1684
, even when leadingDigits
are 684
.
Second, not all countries have leadingDigits
: for example, CA
nada.
https://github.com/google/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml
So leadingDigits
are just an internal performance optimization in the library code, not an exposed feature.
Steps to reproduce
Calling
getCountryCallingCode
on countries/territories likeAmerican Samoa
andAnguila
Observed result
It returns
+1
Expected result
What's the expected result?
It returns
+1 684
and+1 264
respectivelyGoogle's demo link
https://libphonenumber.appspot.com/phonenumberparser?number=%2B1-2641234567