From f7152f6de732bb0f0ccf537a440364c41ae3bdad Mon Sep 17 00:00:00 2001 From: Alexander Kaufmann Date: Mon, 19 Mar 2018 14:27:20 +0100 Subject: [PATCH] add postalcode validation for slovakia --- lib/isPostalCode.js | 1 + src/lib/isPostalCode.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/isPostalCode.js b/lib/isPostalCode.js index 0d9564396..d8c7a48a4 100644 --- a/lib/isPostalCode.js +++ b/lib/isPostalCode.js @@ -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, diff --git a/src/lib/isPostalCode.js b/src/lib/isPostalCode.js index cd0e5eeac..b3240f17f 100644 --- a/src/lib/isPostalCode.js +++ b/src/lib/isPostalCode.js @@ -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,