libPhoneNumber-iOS icon indicating copy to clipboard operation
libPhoneNumber-iOS copied to clipboard

Parse Italian Internation Phone return wrong answer

Open marwenmoalla opened this issue 6 years ago • 0 comments

Input : phoneNumber = 3906123456 RegionCode: it NBPhoneNumber *nbNumber = [[NBPhoneNumberUtil sharedInstance] parse:phoneNumber defaultRegion:countryRegionCode error:error]; This method return a validnbNumber with description:

  • countryCode[39], nationalNumber[3906123456], extension[(null)], italianLeadingZero[N], numberOfLeadingZeros[1], rawInput[(null)] countryCodeSource[(null)] preferredDomesticCarrierCode[(null)]

PS: When i put national number 06123456 it retrun the correct NBPhoneNumber object. Could you help me to understand/resolve this issue.

marwenmoalla avatar Mar 11 '19 16:03 marwenmoalla