Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const buildEsuValidationSchema = overrides => {
.string()
.required('Please enter your first name')
.matches(
/^[A-Za-z][A-Za-z' -]*$/,
/^\p{L}[\p{L}' -]*$/u,
"This field only accepts letters and ' - and must start with a letter"
)
.max(25, 'Your first name must be between 1 and 25 characters'),
[ESU_FIELDS.LAST_NAME]: yup
.string()
.required('Please enter your last name')
.matches(
/^[A-Za-z][A-Za-z' -]*$/,
/^\p{L}[\p{L}' -]*$/u,
"This field only accepts letters and ' - and must start with a letter"
)
.max(50, 'Your last name must be between 1 and 50 characters'),
Expand Down
Loading