Skip to content

Commit

Permalink
changed email regex
Browse files Browse the repository at this point in the history
  • Loading branch information
multiverseweb committed Nov 11, 2024
1 parent 61cb36f commit 30ba3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function validateForm() {

// EMAIL VALIDATING FUNCTION
function isValidEmail(email) {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
return emailRegex.test(email);
}

Expand Down

0 comments on commit 30ba3f4

Please sign in to comment.