You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.
I had the same problem for Dutch (NL) numbers, and found out why: the whitespace in the PhoneNumberMetaData files' regex patterns cause the regex not to work. Either by removing it in the metadata files or by removing whitespace when you're getting the data you can fix it.
Sadly, I haven't had the time to make such a fix other than a quick hack in my own project.
kitbs
added a commit
to kbsjunk/libphonenumber-for-PHP
that referenced
this issue
Jun 10, 2013
see also / related: #7
I'm using php 5.4.6.
I wrote the following test script to exercise the national formatting. It failed for CH and GB but not FR.
It looks like PhoneNumberUtil::chooseFormattingPatternForNumber() can't find a valid formatting pattern in these cases (I did not investigate why).
Output:
In the UK example, I would have expected something like 07454 545454
The text was updated successfully, but these errors were encountered: