Skip to content

Commit

Permalink
fix(isPostalCode): ensure sweedish postal code does not start with 0 (#…
Browse files Browse the repository at this point in the history
…1069)

Authored by Ezrqn Kemboi <ezrqnkemboi@gmail.com>
Closes #1008
  • Loading branch information
ezkemboi authored and profnandaa committed Jul 25, 2019
1 parent 02896f3 commit 54bf8c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/isPostalCode.js
Expand Up @@ -58,7 +58,7 @@ var patterns = {
RO: sixDigit,
RU: sixDigit,
SA: fiveDigit,
SE: /^\d{3}\s?\d{2}$/,
SE: /^[1-9]\d{2}\s?\d{2}$/,
SI: fourDigit,
SK: /^\d{3}\s?\d{2}$/,
TN: fourDigit,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/isPostalCode.js
Expand Up @@ -49,7 +49,7 @@ const patterns = {
RO: sixDigit,
RU: sixDigit,
SA: fiveDigit,
SE: /^\d{3}\s?\d{2}$/,
SE: /^[1-9]\d{2}\s?\d{2}$/,
SI: fourDigit,
SK: /^\d{3}\s?\d{2}$/,
TN: fourDigit,
Expand Down
2 changes: 1 addition & 1 deletion validator.js
Expand Up @@ -1789,7 +1789,7 @@ var patterns = {
RO: sixDigit,
RU: sixDigit,
SA: fiveDigit,
SE: /^\d{3}\s?\d{2}$/,
SE: /^[1-9]\d{2}\s?\d{2}$/,
SI: fourDigit,
SK: /^\d{3}\s?\d{2}$/,
TN: fourDigit,
Expand Down
2 changes: 1 addition & 1 deletion validator.min.js

Large diffs are not rendered by default.

0 comments on commit 54bf8c4

Please sign in to comment.