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 }