Skip to content

Commit

Permalink
correction regex email pour le téléchargement
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebarros committed Jan 25, 2024
1 parent 8a822d2 commit c32892a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//TODO to test

export const isCorrectEmail = (email: string) => /^[\w\-.]+@[\w-]+\.[\w-]{2,}$/.test(email);
export const isCorrectEmail = (email: string) => /^[\w\-.]+@([\w-]+\.)+[\w-]{2,4}$/.test(email);

export const getCookie = (name: string) => {
if (!document.cookie || document.cookie === "") return;
Expand Down

0 comments on commit c32892a

Please # to comment.