daddyz / phonelib

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

Weird data in phone_ext_data #214

Closed husam212 closed 2 years ago

husam212 commented 3 years ago

The first element in phone_ext_data contains the following array:

["iso alpha2", "name"]

This is not exposed API so it might not be a bug, it started in recent versions (> 0.6.45).

daddyz commented 3 years ago

@husam212 strange, can you provide your environment since I don't see this locally?

husam212 commented 3 years ago

@daddyz I can reproduce the issue with version 0.6.49.

test.zip

daddyz commented 2 years ago

So you got to :country_names key:

Phonelib.phone_ext_data[:country_names].first
=> ["iso alpha2", "name"]

Will be fixed in next version.