From 6600184db1969a575ee1c45f9ddc55c1c43e473f 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..3faf54a9203 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("[ABDEFGHJLNPQRSTUWXYZ]{1,2}[0-9]{1,2} [ABDEFGHJLNPQRSTUWXYZ][0-9]{2}")}}', + '{{helpers.fromRegExp("[ABDEFGHJLNPQRSTUWXYZ]{1,2}[0-9][ABDEFGHJLNPQRSTUWXYZ] [ABDEFGHJLNPQRSTUWXYZ][0-9]{2}")}}', ];