phonie
phonie copied to clipboard
Ruby library for phone number parsing, validation and formatting
Hello! Great little library here. I'm wondering if you'd be open to a change that allowed additional area codes to be injected into the gem? That way we wouldn't be...
Some Brazilian mobile phones now have 9 digits. Example: This works `(Phonie::Phone.parse '31992211568', country_code: '55').area_code` `31` But when area code is passed in the options instead of number: `(Phonie::Phone.parse '992211568',...
We were running into an issue with an Italian number that had an area code that was matching the country code. This is an example of the problem phone no:...
Just came across [Google's libphonenumber](https://github.com/googlei18n/libphonenumber) project and I'm wondering if there are benefits in converting and importing their [database](https://github.com/googlei18n/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml) to fill in the gaps Phonie has. There's a whole library...
It is very popular to have an area code of the format 0XX, but when you want to use the country code yy it should turn yyxx and not yy0xx....
Hi! I have a few phone numbers - like 89128500002. They can't be parsed.
Up to discussion, but if each country code had it N.yml file? It may get loaded in a JIT fashion, so country would load to memory only codes used. And...
Should be done first, there's no logic change but lots of stupid git conflicts might happen.
And validate you can't set both? Some countries, here Brazil example, have n1 variable and n2 fixed: Toll Free -> (0800) 123-4567 Landline -> (11) 1234-5678 Mobile -> (11) 12345-6789