Skip to content

Commit bd11831

Browse files
committed
Update js/contrib/other-validations.js
Added a polish zip-code rule
1 parent b6a803f commit bd11831

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)