Problem with trimming zeros
murat11 opened this issue · comments
Murat Erkenov commented
Many phone numbers have leading zeros after the country code. Ivory Coast for example https://www.wikiwand.com/en/Telephone_numbers_in_Ivory_Coast
But this code removes it from resulting number
libphonenumber-for-php/src/PhoneNumberUtil.php
Line 1799 in 218caee
Joshua Gigg commented
Doesn't
static::setItalianLeadingZerosForPhoneNumber($normalizedNationalNumber,
$phoneNumber); deal with that?
…On Tue, 30 May 2023, 16:29 Murat Erkenov, ***@***.***> wrote:
Many phone numbers have leading zeros after the country code. Ivory Coast
for example https://www.wikiwand.com/en/Telephone_numbers_in_Ivory_Coast
But this code removes it from resulting number
https://github.com/giggsey/libphonenumber-for-php/blob/218caeeeb224bf2f553597b5c3a1647ff936db64/src/PhoneNumberUtil.php#L1799
—
Reply to this email directly, view it on GitHub
<#578>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKUQQVNA47ME2BCJY4BDTXIYG5XANCNFSM6AAAAAAYUF73KA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Murat Erkenov commented
Joshua Gigg commented
Doesn't that debug show it working?
The $phoneNumber
object has italianLeadingZero
set to true, and the numberOfItalianZeros
is set to 1.