Skip to content

Commit

Permalink
fix: allow longer than 3 chars TLD in email
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Sep 27, 2024
1 parent ca86a37 commit c78b63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formulaire/src/components/Dossier/DossierForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const DossierForm: React.FC<Props> = ({ dossier, docs, comments }) => {
verif = false;
}
if (
!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(
!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/.test(
contextDossier.demandeur.email ?? ""
)
) {
Expand Down

0 comments on commit c78b63c

Please sign in to comment.