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

correct Tajikistan numbers pattern #523

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/phony/countries/tajikistan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
one_of(ndcs_with_3_subscriber_digits) >> split(3) |
one_of(ndcs_with_5_subscriber_digits) >> split(3,2) |
one_of(ndcs_with_6_subscriber_digits) >> split(3,3) |
match(/\A(505|9\d\d)\d+\z/) >> split(3,3) | # mobile
match(/\A(505|9\d\d|88\d)\d+\z/) >> split(3,3) | # mobile
one_of(%w(446 474 487)) >> split(3,3) | # wireless geographic
fixed(3) >> split(3,3)
end
3 changes: 2 additions & 1 deletion spec/functional/plausibility_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ def self.it_is_correct_for(country_name, options={})
'+992 372 123 345',
'+992 505 123 456',
'+992 973 123 456',
'+992 474 456 123']
'+992 474 456 123',
'+992 881 123 456']
it_is_correct_for 'Thailand', :samples => ['+6621231234',
'+6636123123',
'+66612345678',
Expand Down