Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.76k stars 774 forks source link

Allow 6-digit postal code for Cambodia #1363

Closed omega3000 closed 1 year ago

omega3000 commented 2 years ago

Cambodia (Code: KH) introduced a new 6-digit postal code format in 2018. While the old 5-digit format is still widely used and also still accepted by DHL International (Paket), validation should pass both formats. DHL Express for instance accepts the 6-digit format only.

Please refer to: www.grcdi.nl/gsb/cambodia.html khpostcode.com

I will do a pull request that extends the current rule and add it to unit tests accordingly.

The same issue occurs to Serbian postal codes, see Respect#1304

alganet commented 1 year ago

I'm closing this as it was released in 2.2.4.