Skip to content

Commit

Permalink
Match regex to B/E
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyEPhipps committed Jun 24, 2024
1 parent 9ffa4c0 commit 77da05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/GiftAid/UpdateForm/UpdateFormFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const updateFormFields = {
placeholder: 'In the format 07123456789',
label: 'Mobile number',
required: false,
pattern: '^07[0-9]{9}$', // Matches the validation in the main 'submit' form
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.',
Expand Down

0 comments on commit 77da05f

Please sign in to comment.