Skip to content
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

001 country code #199

Closed
Pavel-Guseynov opened this issue Aug 4, 2020 · 2 comments
Closed

001 country code #199

Pavel-Guseynov opened this issue Aug 4, 2020 · 2 comments

Comments

@Pavel-Guseynov
Copy link

>> number = Phonelib.parse(979543666330)
=> #<Phonelib::Phone:0x00007f91f7c3a8f8 @original="979543666330", @extension="", @sanitized="979543666330", @original_s="979543666330", @data={"001"=>{:id=>"001", :country_code=>"979", :national=>"543666330", :format=>{:pattern=>"(\\d)(\\d{4})(\\d{4})", :leading_digits=>"[1359]", :format=>"$1 $2 $3"}, :valid=>[:premium_rate], :possible=>[:premium_rate]}}, @national_number="543666330">
>> number.country
=> "001"

Expecting ISO2 code form country method

@daddyz
Copy link
Owner

daddyz commented Oct 13, 2020

Prefix 979 is an international prefix. The info is here.
Might be I will change the method to return nil instead.

@daddyz
Copy link
Owner

daddyz commented Feb 3, 2025

The method is returning "International 979" now

@daddyz daddyz closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants