Skip to content

feat: add postal code detection#42

Merged
melihbirim merged 2 commits intomainfrom
feat/add-postal-code-detection
Dec 27, 2025
Merged

feat: add postal code detection#42
melihbirim merged 2 commits intomainfrom
feat/add-postal-code-detection

Conversation

@melihbirim
Copy link
Copy Markdown
Owner

Adds postal/ZIP code detection for multiple international formats:

Supported formats:

  • US ZIP: 12345
  • US ZIP+4: 12345-6789
  • UK: SW1A 1AA, N1 1AA, KT1 1AA (with/without space)
  • Canada: M5H 2N2 (with/without space)
  • France: 75001

Testing:

  • ✅ 9 comprehensive test cases
  • ✅ All 113 tests passing
  • ✅ Valid formats correctly detected
  • ✅ Invalid formats rejected

Closes #13

Adds support for detecting postal/ZIP codes from multiple countries:
- US: 12345, 12345-6789 (ZIP and ZIP+4)
- UK: SW1A 1AA, N1 1AA, KT1 1AA (with/without space)
- Canada: M5H 2N2 (with/without space)
- France: 75001 (5 digits)

Added comprehensive test coverage with 9 test cases covering valid and invalid formats.

Closes #13
@melihbirim melihbirim merged commit 934e233 into main Dec 27, 2025
8 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.

Add Postal/ZIP Code Detector

1 participant