Skip to content

Commit

Permalink
fixed the code I undid by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiffpixels committed May 14, 2024
1 parent 8584337 commit 196d541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ContactUs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 196d541

Please sign in to comment.