Skip to content

Commit

Permalink
Merge pull request #803 from kaufmo/add-slovakia-to-postalcodes
Browse files Browse the repository at this point in the history
add postalcode validation for slovakia
  • Loading branch information
chriso authored May 3, 2018
2 parents 870c602 + f7152f6 commit 98d1075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/isPostalCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ var patterns = {
RU: sixDigit,
SA: fiveDigit,
SE: /^\d{3}\s?\d{2}$/,
SK: /^\d{3}\s?\d{2}$/,
TW: /^\d{3}(\d{2})?$/,
US: /^\d{5}(-\d{4})?$/,
ZA: fourDigit,
Expand Down
1 change: 1 addition & 0 deletions src/lib/isPostalCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const patterns = {
RU: sixDigit,
SA: fiveDigit,
SE: /^\d{3}\s?\d{2}$/,
SK: /^\d{3}\s?\d{2}$/,
TW: /^\d{3}(\d{2})?$/,
US: /^\d{5}(-\d{4})?$/,
ZA: fourDigit,
Expand Down

0 comments on commit 98d1075

Please sign in to comment.