Skip to content

Commit

Permalink
Merge pull request #68 from BernardoCMoreira/master
Browse files Browse the repository at this point in the history
Allow NNNN zipcode for Argentina
  • Loading branch information
dgilperez authored Sep 10, 2024
2 parents dd1094e + 6840130 commit 4e5a313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validates_zipcode/cldr_regex_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/,
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@
valid: %w[
C1234CHN
C1234
6000
],
invalid: [
nil,
Expand Down

0 comments on commit 4e5a313

Please sign in to comment.