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

Fix trunk prefix for Laos #510

Merged
merged 1 commit into from
Aug 14, 2023
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
1 change: 1 addition & 0 deletions lib/phony/countries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@

# Lao People's Democratic Republic https://www.wtng.info/wtng-856-la.html, https://www.numberingplans.com
country '856',
trunk('0') |
one_of('30') >> split(3,4) | # geographic
one_of('20') >> split(4,4) | # mobile
fixed(2) >> split(3,3) # geographic
Expand Down
5 changes: 5 additions & 0 deletions qed/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers
Phony.format('393333337647', :format => :national).assert == '333 333 7647'
Phony.format('390108480161', :format => :national).assert == '010 8480161'

#### Laos

Phony.format('8562092960311', :format => :international).assert == '+856 20 9296 0311'
Phony.format('8562092960311', :format => :national).assert == '020 9296 0311'

#### Liechtenstein

Phony.format('4233841148', :format => :international_relative).assert == '00423 384 11 48'
Expand Down