Open paulll opened 1 month ago
Sounds like a duplicate of #68 to me, no?
Not quite, since this is about dropping a number in the national part, and bug 68 is about handling/guessing the country code in itself.
Edit: It is a duplicate indeed; this one drops 8
and the linked bug drops 39
. Missed that one, sorry!
I'm not sure if it makes a difference, but as far as I can see, 39
is a country code:
<territory id="IT" mainCountryForCode="true" countryCode="39" internationalPrefix="00"
mobileNumberPortableRegion="true">
And 8
is a national prefix, while 7
is a country code.
<territory id="RU" mainCountryForCode="true" countryCode="7" leadingDigits="3[04-689]|[489]"
preferredInternationalPrefix="8~10" internationalPrefix="810" nationalPrefix="8"
mobileNumberPortableRegion="true">
Let's leave both issues open, then!
Some RU/KZ/BY (and maybe other) numbers are truncated if national part of the number starts with same digit as national trunk prefix which is
8
in that case:+78005553535
expected+78005553535
, got+7005553535
88005553535
expected+78005553535
, got+7005553535
+375800111111
expected+375800111111
, got+37500111111
Also RU numbers are always 11 digits in E164 form, so that
+7005553535
is impossible number.Google libphonenumber handles that cases correctly: 1, 2, 3