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

Open
Pavel-Guseynov opened this issue Aug 4, 2020 · 1 comment
Open

001 country code #199

Pavel-Guseynov opened this issue Aug 4, 2020 · 1 comment

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.

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