From 35398f207e33c1cf385d9bc7ffd466d7f4832ce2 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 29 Oct 2024 22:17:06 +0100 Subject: [PATCH] refactor(locale): fix en_GB postcode patterns --- src/locales/en_GB/location/postcode_pattern.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locales/en_GB/location/postcode_pattern.ts b/src/locales/en_GB/location/postcode_pattern.ts index 8516baf5632..5806bed3916 100644 --- a/src/locales/en_GB/location/postcode_pattern.ts +++ b/src/locales/en_GB/location/postcode_pattern.ts @@ -1,4 +1,4 @@ export default [ - '{{string.alpha({ "casing": "upper" , "length": 2})}}{{string.numeric}} {{string.numeric}}{{string.alpha({ "casing": "upper" , "length": 2})}}', - '{{string.alpha({ "casing": "upper" , "length": 2})}}{{string.numeric(2)}} {{string.numeric}}{{string.alpha({ "casing": "upper" , "length": 2})}}', + '{{helpers.fromRegExp("[A-Z]{1,2}[0-9]{1,2} [0-9][ABDEFGHJLNPQRSTUWXYZ]{2}")}}', + '{{helpers.fromRegExp("[A-Z]{1,2}[0-9][A-Z] [0-9][ABDEFGHJLNPQRSTUWXYZ]{2}")}}', ];