hof 21.2.0-postcode-lookup-beta.5 → 21.2.0-postcode-lookup-beta.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -343,7 +343,7 @@ module.exports = config => {
|
|
343
343
|
saveValues(req, res, callback) {
|
344
344
|
const step = req.query.step;
|
345
345
|
if (step === 'postcode') {
|
346
|
-
postcode = req.form.values[`${addressFieldNamePrefix}-postcode`]?.replace(/[^\w]+/g, '$1 $2');
|
346
|
+
postcode = req.form.values[`${addressFieldNamePrefix}-postcode`]?.replace(/[^\w]+/g, '').replace(/^(.*)(\d)/, '$1 $2');
|
347
347
|
this.clearAddressFieldValues(req);
|
348
348
|
return this.postcode(req, res, err => {
|
349
349
|
if (err) {
|