diff --git a/lib/validates_zipcode/cldr_regex_collection.rb b/lib/validates_zipcode/cldr_regex_collection.rb index c8587e7..f97737c 100644 --- a/lib/validates_zipcode/cldr_regex_collection.rb +++ b/lib/validates_zipcode/cldr_regex_collection.rb @@ -32,7 +32,7 @@ module CldrRegexpCollection SG: /\A\d{6}\z/, DZ: /\A\d{5}\z/, AD: /\AAD\d{3}\z/, - AR: /\A[A-HJ-NP-Z]{1}\d{4}([A-Z]{3})?\z/, + AR: /\A([A-HJ-NP-Z]{1}\d{4}([A-Z]{3})?|\d{4})\z/, AM: /\A(37)?\d{4}\z/, BH: /\A(1[0-2]|[1-9])\d{2}\z/, BD: /\A\d{4}\z/, diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7bb346a..c601237 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -423,6 +423,7 @@ valid: %w[ C1234CHN C1234 + 6000 ], invalid: [ nil,