diff --git a/src/components/ProtocolForm.js b/src/components/ProtocolForm.js index 5aad239..4d7fbdc 100644 --- a/src/components/ProtocolForm.js +++ b/src/components/ProtocolForm.js @@ -188,7 +188,7 @@ export const ProtocolForm = () => { required={true} value={email} autoComplete="email" - pattern="^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$" + pattern="[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*" title="Въведете валиден имейл адрес" placeholder="Имейл адрес" onChange={(e) => setEmail(e.target.value)} diff --git a/src/components/ViolationForm.js b/src/components/ViolationForm.js index 337dc40..8737888 100644 --- a/src/components/ViolationForm.js +++ b/src/components/ViolationForm.js @@ -192,7 +192,7 @@ export const ViolationForm = () => { label="Имейл" type="email" autoComplete="email" - pattern="^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$" + pattern="[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*" title="Въведете валиден имейл адрес" register={register} errors={errors}