From 196d5419d570370c14a4328513195205420171d3 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 14 May 2024 18:48:49 +0530 Subject: [PATCH] fixed the code I undid by mistake --- src/components/ContactUs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ContactUs.jsx b/src/components/ContactUs.jsx index 3f8adfa..1ee821c 100644 --- a/src/components/ContactUs.jsx +++ b/src/components/ContactUs.jsx @@ -18,7 +18,7 @@ const ContactUs = () => { return } - if(!name.match(/^[a-z]/i)){ + if(!name.match(/^[a-z]+$/i)){ alert("Only alphabets are allowed in name") return }