Skip to content

Accept Hong Kong postcode placeholders - #70

Merged
barbieswimcrew merged 1 commit into
barbieswimcrew:masterfrom
jcglombard:fix/hk-placeholder-postcodes
Oct 28, 2026
Merged

barbieswimcrew merged 1 commit into
barbieswimcrew:masterfrom
jcglombard:fix/hk-placeholder-postcodes

Conversation

@jcglombard

@jcglombard jcglombard commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This Pull Request updates the ZipCodeValidator to improve the handling of Hong Kong postal codes by extending its validation rules. It accommodates scenarios where placeholders or specific patterns like "HKG" and "HK" are used, reflecting the fact that Hong Kong lacks a formal postal code system.

Main Changes:

  • Expanded Hong Kong postal code validation to accept new patterns:
    • Numeric placeholders (0{3,6})
    • String placeholders (HKG, HK)

Closes #69

…, HK)

Hong Kong has no postal code system; Hongkong Post recommends placeholders
when a postcode field is mandatory.

Closes barbieswimcrew#69
@barbieswimcrew
barbieswimcrew merged commit c4e1b2c into barbieswimcrew:master Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HK: accept placeholder values besides 999077 (Hong Kong has no postal code system)

2 participants