Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosened Regex on GB postcodes #1502

Merged
merged 1 commit into from
Sep 11, 2015
Merged

Loosened Regex on GB postcodes #1502

merged 1 commit into from
Sep 11, 2015

Conversation

GaborSuranyi
Copy link

The space is casually ignored by customers. It doesn't really matter, and won't cause any delivery / billing issues.
Other option is formatting the postcode input to contain the space. (The second part after the potential whitespace is always [0-9]{1}[a-zA-Z]{2}, so it's 100% safe to insert the whitespace before this part, if it's missing.)
Or as a final option, make the validation error clear. (you missed the whitespace)

This change makes the whitespace optional.

The space is casually ignored by customers. It doesn't really matter, and won't cause any delivery / billing issues.
Other option is formatting the postcode input to contain the space. (The second part after the potential whitespace is always [0-9]{1}[a-zA-Z]{2})
@vpelipenko vpelipenko added the PS label Jul 17, 2015
@GaborSuranyi
Copy link
Author

Just to clarify: this will cause most of UK checkouts to stall.

I'm working for a company that does address lookup for the UK, and we are rolling out our module for M2. (we are pretty popular for M1) This issue doesn't really affect us (we use a separate field anyhow & we return the postcode by the official Royal Mail format) however statistically it's not usual to place the space in the postcode. It's something that people tend to skip.

However, the lack of proper validation error can make this an annoying experience for customers who just want to checkout.

@joanhe
Copy link
Contributor

joanhe commented Aug 6, 2015

Looks good to me, internal ticket MAGETWO-41209 is created for processing this pull request. Thanks for the contribution!

@joanhe joanhe added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Aug 6, 2015
@joanhe joanhe self-assigned this Aug 6, 2015
@magento-team magento-team merged commit 2c0bd63 into magento:develop Sep 11, 2015
magento-team pushed a commit that referenced this pull request Sep 19, 2017
…recated-Tags

[honey] MAGETWO-70580: Magento 2.2.0 Publication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants