From e77e4c6a7040f5df8d296bec7a57622309fce31c Mon Sep 17 00:00:00 2001 From: AndyEPhipps Date: Mon, 24 Jun 2024 16:20:10 +0100 Subject: [PATCH] Fix regex --- src/pages/GiftAid/UpdateForm/UpdateFormFields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/GiftAid/UpdateForm/UpdateFormFields.js b/src/pages/GiftAid/UpdateForm/UpdateFormFields.js index 601f0013..99e1f5b0 100644 --- a/src/pages/GiftAid/UpdateForm/UpdateFormFields.js +++ b/src/pages/GiftAid/UpdateForm/UpdateFormFields.js @@ -86,7 +86,7 @@ export const updateFormFields = { placeholder: 'In the format 07123456789', label: 'Mobile number', required: false, - pattern: '^(?:(?:00)?44|0)7(?:[457-9]\d{2}|624)\d{6}$', // As per Update.action.js in serverless-giftaid + pattern: '^(?:(?:00)?44|0)7(?:[457-9]\\d{2}|624)\\d{6}$', // As per Update.action.js in serverless-giftaid helpText: 'Enter the one associated with your donation', emptyFieldErrorText: 'Please fill in your mobile number', invalidErrorText: 'Please enter a valid mobile phone number - it must be the same number associated with your donation.',