The postal code validation for United Kingdom is currently case sensitive, which is technically correct, as when you type out an address correctly this is with capital letters.

However, we are experiencing a many users who are reporting their post code is 'not the correct format' and this is because the average user can be lazy (and also on their phone) and is using lower case letters.

What would be the best means to either disable post code validation or update the validation to accept lowercase letters?

Comments

IamOnStage created an issue. See original summary.

bojanz’s picture

Status: Active » Fixed

I looked into this, turns out we do use case insensitive matching in PHP. The problem is in the HTML5 pattern attribute which is always case sensitive. That was added in the last release via #3025983: [Reverted] Add a pattern attribute to the postal code field and has now been reverted.

Thanks for the report!

Status: Fixed » Closed (fixed)

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