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

Phoner::Phone.parse ignores national_dialing_prefix #67

Open
dima4p opened this issue Feb 26, 2015 · 0 comments
Open

Phoner::Phone.parse ignores national_dialing_prefix #67

dima4p opened this issue Feb 26, 2015 · 0 comments

Comments

@dima4p
Copy link

dima4p commented Feb 26, 2015

Phoner::Phone.default_country_code = '7'
=> "7"
pn = Phoner::Phone.parse('4955125486')
=> #<Phoner::Phone:0x00000007c04ac0 @number="5125486", @area_code="495", @country_code="7", @extension=nil>
pn = Phoner::Phone.parse('84955125486')
=> #<Phoner::Phone:0x00000007bfdc20 @number="55125486", @area_code="849", @country_code="7", @extension=nil>

I expect the last result to be the same as the previous one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant