We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48720b3 commit cca3788Copy full SHA for cca3788
1 file changed
src/components/Organisms/shared/emailSignup/emailSignupConfig.js
@@ -34,15 +34,15 @@ const buildEsuValidationSchema = overrides => {
34
.string()
35
.required('Please enter your first name')
36
.matches(
37
- /^[A-Za-z][A-Za-z' -]*$/,
+ /^\p{L}[\p{L}' -]*$/u,
38
"This field only accepts letters and ' - and must start with a letter"
39
)
40
.max(25, 'Your first name must be between 1 and 25 characters'),
41
[ESU_FIELDS.LAST_NAME]: yup
42
43
.required('Please enter your last name')
44
45
46
47
48
.max(50, 'Your last name must be between 1 and 50 characters'),
0 commit comments