From db7789c9585e1f5bdc2ae5b90a2878afedbebeba Mon Sep 17 00:00:00 2001 From: Ivan Stanishev Date: Fri, 24 Apr 2015 17:03:07 +0200 Subject: [PATCH] Add padding (left) functionality for Poland postal codes #48 --- src/PostalCodes/Generated/PLPostalCode.gen.cs | 1 + src/countries/PL.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PostalCodes/Generated/PLPostalCode.gen.cs b/src/PostalCodes/Generated/PLPostalCode.gen.cs index e84ad57..4f0566a 100644 --- a/src/PostalCodes/Generated/PLPostalCode.gen.cs +++ b/src/PostalCodes/Generated/PLPostalCode.gen.cs @@ -38,6 +38,7 @@ public override int GetHashCode () Name = "PL : 99-999", RegexDefault = new Regex("^[0-9]{5}$", RegexOptions.Compiled), OutputDefault = "xx-xxx", + LeftPaddingCharacter = "0", } }; } diff --git a/src/countries/PL.json b/src/countries/PL.json index 193dd88..8e518ec 100644 --- a/src/countries/PL.json +++ b/src/countries/PL.json @@ -6,7 +6,8 @@ { "Name" : "PL : 99-999", "RegexDefault" : "^[0-9]{5}$", - "OutputDefault" : "xx-xxx" + "OutputDefault" : "xx-xxx", + "LeftPaddingCharacter" : "0" } ],