Skip to content

Commit

Permalink
Merge pull request #82 from sparrowapp-dev/development
Browse files Browse the repository at this point in the history
Release Version 2.13.0 [Merging development into prod]
  • Loading branch information
itsmdasifraza authored Dec 6, 2024
2 parents 8b89e27 + 0e9b0d4 commit ff8c009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const registrationSchema = yup.object().shape({
.email()
.matches(emailRegex, 'Please enter a valid Email ID')
.required('Please enter a valid Email ID'),
firstName: yup.string().matches(firstNameRegex, "Your first name cannot have numbers or special characters.").required('Please enter your first name.'),
firstName: yup.string().trim().matches(firstNameRegex, "Your first name cannot have numbers or special characters.").required('Please enter your first name.'),
lastName: yup.string().matches(lastNameRegex, "Your last name cannot have numbers or special characters."),
password: yup
.string()
Expand Down

0 comments on commit ff8c009

Please sign in to comment.