Skip to content

Commit

Permalink
Allow emails finishing with .school
Browse files Browse the repository at this point in the history
  • Loading branch information
FlavioF authored Feb 6, 2025
1 parent 1ba7317 commit 5544ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecules/question/helpers/isValidEmail.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Helper function to validate the email format using regex
export const isValidEmail = (email: string): boolean => {
const emailRegex = /^[\w-+.]+@([\w-]+\.)+[\w-]{2,4}$/
const emailRegex = /^[\w-+.]+@([\w-]+\.)+[\w-]{2,}$/
return emailRegex.test(email)
}

0 comments on commit 5544ef0

Please # to comment.