Skip to content

Commit 8b0f310

Browse files
committed
Merge pull request #567 from karol-gontarski/patch-1
Update js/contrib/other-validations.js
2 parents d81a9fe + bd11831 commit 8b0f310

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/contrib/other-validations.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
"regex": /^\d{4}?$/,
3333
"alertText": "* Invalid zipcode"
3434
};
35+
$.validationEngineLanguage.allRules["postcodePL"] = {
36+
// Polish zip codes | Accepts 80-000 format zipcodes
37+
"regex": /^\d{2}-\d{3}$/,
38+
"alertText": "* Niepoprawny kod pocztowy, poprawny format to: 12-345"
39+
};
40+
3541
$.validationEngineLanguage.allRules["postcodeJP"] = {
3642
// JP zip codes | Accepts 123 and 123-1234 format zipcodes
3743
"regex": /^\d{3}(-\d{4})?$/,

0 commit comments

Comments
 (0)