Skip to content

Commit

Permalink
fix: allow longer than 3 chars TLD in email (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 authored Sep 27, 2024
1 parent ca86a37 commit 892c8f7
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 892c8f7

Please sign in to comment.