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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "21.2.0-postcode-lookup-beta.5",
4
+ "version": "21.2.0-postcode-lookup-beta.6",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",