-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Italy phone numbers with 2 digit NDCs will not format correctly #33
Comments
Thanks for reporting! Inclined to fix it and send a pull request? :) On 24.01.2012, at 15:05, Bekki Hui Jamreply@reply.github.com wrote:
|
Will do! |
Thank you, Bekki! |
@PixelVixen Ok, pulled your request. Thanks very much for participating! As a note for the future: The countries specs are in Will release 1.6.2 in the next half hour. |
Phony 1.6.2 is released, also see contributors https://github.com/floere/phony/wiki/Contributors. Thanks! :) |
A number like "390612345678" will not format correctly. The last digit will be dropped and the formatted number will end up looking like this: "+39 06 123 4567"
The problem is in the last handler defined in phony/countries/italy.rb. The local splitter there will split the number into three digits and then four, dropping off the last digit. This works just fine for 3 or more digit NDCs obviously. :)
The text was updated successfully, but these errors were encountered: