Skip to content

Commit

Permalink
Update emailvalidation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjaliavv51 authored Jul 29, 2024
1 parent ce88831 commit 223e71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/emailvalidation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
emailjs.init("Your_User_ID"); // Replace with your actual EmailJS User ID

// Function to validate email address
function isValidEmail(email) {
export function isValidEmail(email) {
// Simple email validation regex
const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
if (!regex.test(email)) {
Expand Down

0 comments on commit 223e71e

Please sign in to comment.