Skip to content

Commit

Permalink
Update Thailand.
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Oct 10, 2015
1 parent ebcfcb4 commit 87f5f58
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions history.textile
@@ -1,3 +1,7 @@
h2. Version 2.15.4

* Improvements for Thailand (#286).

h2. Version 2.15.3

* Improvements for Austria (#283).
Expand Down
2 changes: 1 addition & 1 deletion lib/phony/countries.rb
Expand Up @@ -271,7 +271,7 @@
#
country '66',
trunk('0') |
match(/\A([89]\d\d)\d+\z/) >> split(3,3) | # mobile
match(/\A([689]\d\d)\d+\z/) >> split(3,3) | # mobile
one_of('2') >> split(3,4) | # Bangkok
fixed(2) >> split(3,3) # Rest

Expand Down
2 changes: 1 addition & 1 deletion phony.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'phony'
s.version = '2.15.3'
s.version = '2.15.4'
s.authors = ['Florian Hanke']
s.email = 'florian.hanke+phony@gmail.com'
s.homepage = 'http://github.com/floere/phony'
Expand Down
1 change: 1 addition & 0 deletions spec/functional/plausibility_spec.rb
Expand Up @@ -245,6 +245,7 @@ def self.it_is_correct_for(country_name, options={})
'+992 474 456 123']
it_is_correct_for 'Thailand', :samples => ['+6621231234',
'+6636123123',
'+66612345678',
'+66851234567',
'+66921234567']
it_is_correct_for 'Togolese Republic', :samples => '+228 1234 5678'
Expand Down

0 comments on commit 87f5f58

Please sign in to comment.