Skip to content

Commit 2ee980e

Browse files
authored
Merge pull request #26 from crazyfactory/10453-Postcode-Validator-for-ERP
feat(Sanitizer.php): add 'IE' to the format zipCode function
2 parents b9442c9 + 982a246 commit 2ee980e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ZipCode/Sanitizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function format(string $zipCode, string $countryCode, bool &$sanitized =
3232
elseif ($countryCode === 'GB') {
3333
$splitPos = min(max(strlen($newCode) - 3, 2), 4);
3434
}
35-
elseif (in_array($countryCode, ['CZ', 'MT', 'SE', 'SK'])) {
35+
elseif (in_array($countryCode, ['CZ', 'IE', 'MT', 'SE', 'SK'])) {
3636
$splitPos = 3;
3737
}
3838

0 commit comments

Comments
 (0)