Skip to content

Commit

Permalink
ADD: Update to Contact Form
Browse files Browse the repository at this point in the history
  • Loading branch information
GGalina committed Dec 6, 2023
1 parent 06623b1 commit 9fdb0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ContactForm/ContactForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const ContactForm = () => {
<Input
type="text"
name="name"
pattern="^[a-zA-Zа-яА-Я]+(([' -][a-zA-Zа-яА-Я ])?[a-zA-Zа-яА-Я]*)*$"
pattern="^[a-zA-Zа-яА-Я]+(([' -][a-zA-Zа-яА-Я\s])?[a-zA-Zа-яА-Я]*)*$"
title="Name may contain only letters, apostrophe, dash and spaces. For example Adrian, Jacob Mercer, Charles de Batz de Castelmore d'Artagnan"
required
/>
Expand All @@ -40,7 +40,7 @@ export const ContactForm = () => {
<Input
type="tel"
name="number"
pattern="\+?\d{1,4}?[-.\s]?\(?\d{1,3}?\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}"
pattern="\+?\d{1,4}[-.\s]?\(?\d{1,3}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}"
title="Phone number must be digits and can contain spaces, dashes, parentheses and can start with +"
required
/>
Expand Down

0 comments on commit 9fdb0ba

Please sign in to comment.