From 2a4b7bd6604c61e126d95c5a3d606d2321ea7446 Mon Sep 17 00:00:00 2001 From: Diptayan Jash Date: Fri, 17 Oct 2025 20:51:28 +0530 Subject: [PATCH] Update email validation to accept any valid email format; modify error message for clarity --- components/Events/EmailDialogue/EmailDialogue.jsx | 4 ++-- public/sitemap-0.xml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/Events/EmailDialogue/EmailDialogue.jsx b/components/Events/EmailDialogue/EmailDialogue.jsx index 1815a58..0acc070 100644 --- a/components/Events/EmailDialogue/EmailDialogue.jsx +++ b/components/Events/EmailDialogue/EmailDialogue.jsx @@ -25,7 +25,7 @@ const EmailDialogBox = ({ CertiOBJ, title, handelCloseModel }) => { if (typeof email !== "string") { return false; } - return email.match(/^[^@]+@srmist\.edu\.in$/); + return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/); }; const handleEmailChange = (event) => { @@ -39,7 +39,7 @@ const EmailDialogBox = ({ CertiOBJ, title, handelCloseModel }) => { const handleGetCertificate = async (e) => { e.preventDefault(); if (!validateEmail(formData.email)) { - setEmailError("Please enter a valid SRMIST email address."); + setEmailError("Please enter a valid email address."); return; } setEmailError(""); diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml index 7814164..1a36e15 100644 --- a/public/sitemap-0.xml +++ b/public/sitemap-0.xml @@ -1,8 +1,8 @@ -https://githubsrmist.tech2025-04-05T20:41:37.713Zdaily0.7 -https://githubsrmist.tech/about2025-04-05T20:41:37.714Zdaily0.7 -https://githubsrmist.tech/contact2025-04-05T20:41:37.714Zdaily0.7 -https://githubsrmist.tech/events2025-04-05T20:41:37.714Zdaily0.7 -https://githubsrmist.tech/team2025-04-05T20:41:37.714Zdaily0.7 +https://githubsrmist.tech2025-10-16T11:46:56.605Zdaily0.7 +https://githubsrmist.tech/about2025-10-16T11:46:56.606Zdaily0.7 +https://githubsrmist.tech/contact2025-10-16T11:46:56.606Zdaily0.7 +https://githubsrmist.tech/events2025-10-16T11:46:56.606Zdaily0.7 +https://githubsrmist.tech/team2025-10-16T11:46:56.606Zdaily0.7 \ No newline at end of file