floere/phony — Issue #33: Italy phone numbers with 2 digit NDCs will not format correctly
Author: pixelvixen
Created: 2012-01-24 04:05:06+00:00
State: open

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. :)