forked from M3-Academy/desafio-react-e-typescript
Merge pull request 'development' (#28) from development into main
Reviewed-on: #28
This commit is contained in:
commit
613bbc6bfe
@ -1,7 +1,9 @@
|
||||
import * as Yup from "yup";
|
||||
|
||||
export default Yup.object().shape({
|
||||
name: Yup.string().required("*Campo Obrigatório"),
|
||||
name: Yup.string()
|
||||
.min(3, "Mínimo de 03 caracteres")
|
||||
.required("*Campo Obrigatório"),
|
||||
email: Yup.string().required("*Campo Obrigatório").email("e-Mail inválido"),
|
||||
cpf: Yup.string()
|
||||
.matches(/^\d{3}.\d{3}.\d{3}-\d{2}$/, "CPF inválido")
|
||||
|
Loading…
Reference in New Issue
Block a user