mirror of
https://github.com/Respect/Validation.git
synced 2024-06-07 16:22:16 +02:00
Allow optional space for greek postal codes
This commit is contained in:
parent
f53b77a186
commit
2fad28b36b
|
@ -80,7 +80,7 @@ final class PostalCode extends AbstractEnvelope
|
|||
'GG' => '/^((?:(?:[A-PR-UWYZ][A-HK-Y]\d[ABEHMNPRV-Y0-9]|[A-PR-UWYZ]\d[A-HJKPS-UW0-9])\s\d[ABD-HJLNP-UW-Z]{2})|GIR\s?0AA)$/',
|
||||
'GL' => '/^(\d{4})$/',
|
||||
'GP' => '/^((97|98)\d{3})$/',
|
||||
'GR' => '/^(\d{5})$/',
|
||||
'GR' => '/^(\d{3}\s?\d{2})$/',
|
||||
'GT' => '/^(\d{5})$/',
|
||||
'GU' => '/^(969\d{2})$/',
|
||||
'GW' => '/^(\d{4})$/',
|
||||
|
|
|
@ -90,6 +90,8 @@ final class PostalCodeTest extends RuleTestCase
|
|||
[new PostalCode('KY'), 'KY3-2500'],
|
||||
[new PostalCode('AM'), '0010'],
|
||||
[new PostalCode('RS'), '24430'],
|
||||
[new PostalCode('GR'), '24430'],
|
||||
[new PostalCode('GR'), '244 30'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue