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

Support more 800-numbers in Austria #352

Merged
merged 1 commit into from
Dec 9, 2016
Merged
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/austria.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
'730',
'740',
'780',
'800',
'802',
'804',
'810',
Expand All @@ -92,6 +91,7 @@
one_of('1') >> split(3..12) | # Vienna
one_of(service) >> split(9..9) |
one_of('720') >> split(6..10) | # VoIP number length is 9..13
one_of('800') >> split(6..10) | # Free number length is 9..13
one_of(corporate_2digit) >> split(3..11) | # Corporate number length is 5..13
one_of(corporate) >> split(2..10) | # Corporate number length is 5..13
one_of(ndcs) >> split(6..10) |
Expand Down
4 changes: 4 additions & 0 deletions qed/plausibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ Some of the examples use `plausible? true: [some numbers]`.
Phony.assert.plausible?('+43 1 000000')
Phony.assert.plausible?('+43 1 0000000')
Phony.assert.plausible?('+43 501 12345')
Phony.assert.plausible?('+43 800 123456')
Phony.assert.plausible?('+43 800 1234567')
Phony.assert.plausible?('+43 800 12345678')
Phony.assert.plausible?('+43 800 123456789')
Phony.assert.plausible?('+43 800 1234567890')
Phony.assert.plausible?('+43 512 1234567890')
Phony.assert.plausible?('+43 670 1234567890')
Phony.assert.plausible?('+43 3115 3307') # See issue #246 on Github.
Expand Down