• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-playground / validator / 39676452335
73%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: v8
Ran 21 Oct 2026 09:10PM UTC
Jobs 1
Files 36
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Oct 2026 09:09PM UTC coverage: 72.569%. Remained the same
39676452335

push

github

web-flow
Add postcode patterns for IE (Ireland), AL (Albania), GI (Gibraltar) and IL (Israel) (#1629)

postCodePatternDict had no entry for IE, AL or GI, so
postcode_iso3166_alpha2 / postcode_iso3166_alpha2_field rejected valid
postcodes for those countries (the built-in fails closed on unknown
countries). Adds the three patterns plus test coverage in both postcode
test tables. Also extends the existing IL (Israel) pattern to accept the
legacy 5-digit format alongside the 7-digit mikud.

- IE: `^[A-Z]\d[A-Z0-9][ ]?[A-Z0-9]{4}$` (Eircode)
- AL: `^\d{4}$`
- GI: `^GI\d{1,2}[ ]?\d[A-Z]{2}$` (UK format)
- IL: `^\d{5}(\d{2})?$` (was `^\d{7}$` only; now accepts the 7-digit
mikud as well as the legacy 5-digit — 6-digit remains invalid)

### Note on IL (re: #1644)
Upstream #1644 changed IL to `^\d{7}$` only, dropping the 5-digit
format. This PR intentionally keeps `^\d{5}(\d{2})?$`. Per Israel Post
(see [Wikipedia](https://en.wikipedia.org/wiki/Postal_codes_in_Israel)),
the 7-digit mikud became the official format on 2013-02-01 and the
5-digit codes were only valid until 31 Jan 2013 — but they "continue to
be widely used" in practice today. Accepting both avoids rejecting
still-in-use 5-digit addresses; 6-digit remains invalid. Happy to switch
to 7-only to match #1644 if maintainers prefer.

- [x] Tests exist or have been written that cover this particular
change.

@go-playground/validator-maintainers

---------

Co-authored-by: Johannes Hepp <johannes.hepp@digits.schwarz>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

15013 of 20688 relevant lines covered (72.57%)

89.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39676452335.1 21 Oct 2026 09:10PM UTC 36
72.57
GitHub Action Run
Source Files on build 39676452335
  • Tree
  • List 36
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a5843c6f on github
  • Prev Build on master (#39286091229)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc