Italian zip codes are composed of 5 numbers, nothing else. Maybe you can add these too?

CommentFileSizeAuthor
#5 zipcode-it-regex.patch499 bytesliam morland

Comments

matteoraggi’s picture

thierry_gd’s picture

Status: Active » Fixed

Added in 6.2.8 version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

miguel.ceriani’s picture

Version: 6.x-2.6 » 6.x-2.9
Component: Miscellaneous » Code
Category: feature » bug
Status: Closed (fixed) » Needs work

the check for italian zip codes admits only 4 digits codes, while italian zip codes are always 5 digits code.
should be enough to change the expression /^(V-|I-|IT-)?[0-9]{4}$/i with /^(V-|I-|IT-)?[0-9]{5}$/i

liam morland’s picture

Status: Needs work » Needs review
StatusFileSize
new499 bytes

The attached patch implements this fix in master.

liam morland’s picture

Status: Needs review » Fixed

Fixed in 6e15b36.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.