daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.06k stars 130 forks source link

Norway numbers problem #62

Closed alxgsv closed 8 years ago

alxgsv commented 8 years ago

Phonelib.parse("+47946300000").country equals nil, but it's Norway, and 47 listed in https://github.com/googlei18n/libphonenumber as Norway country code.

daddyz commented 8 years ago

@LongMan This number is invalid for Norway. Since number can't be parsed, I can't return country. That's the dependency. But if you remove one "0" number will be valid, and you will be able to get country.