Skip to content

Commit

Permalink
Merge pull request #49 from istanishev/pl_left_pad
Browse files Browse the repository at this point in the history
Add padding (left) functionality for Poland postal codes #48
  • Loading branch information
istanishev committed Apr 24, 2015
2 parents 017ef61 + db7789c commit c613a40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/PostalCodes/Generated/PLPostalCode.gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
};
}
Expand Down
3 changes: 2 additions & 1 deletion src/countries/PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
{
"Name" : "PL : 99-999",
"RegexDefault" : "^[0-9]{5}$",
"OutputDefault" : "xx-xxx"
"OutputDefault" : "xx-xxx",
"LeftPaddingCharacter" : "0"
}
],

Expand Down

0 comments on commit c613a40

Please sign in to comment.