Skip to content

Commit

Permalink
Add pre/post whitespace to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyEPhipps committed Mar 27, 2024
1 parent 63e39d5 commit c1fa435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/GiftAid/UpdateForm/UpdateFormFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export const updateFormFields = {
label: 'Transaction ID',
required: true,
invalidErrorText: 'This transaction ID doesn\'t seem to be valid, please check your donation confirmation email or letter',
pattern: '^[a-zA-Z0-9-_]{5,}$',
// eslint-disable-next-line no-useless-escape
pattern: '^\\s{0,1}[a-zA-Z0-9-_]{5,}\\s{0,1}$',
tooltip: 'This is found at the bottom of your donation confirmation email'
},
firstName: {
Expand Down

0 comments on commit c1fa435

Please sign in to comment.