remoção da obrigatoriedade do 55 no inimcio do numero de telefone
parent
8b089c0fb0
commit
f0e607c475
|
@ -107,7 +107,7 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
|
||||||
number: Yup.string()
|
number: Yup.string()
|
||||||
.required()
|
.required()
|
||||||
.matches(/^\d+$/, "Invalid number format. Only numbers is allowed.")
|
.matches(/^\d+$/, "Invalid number format. Only numbers is allowed.")
|
||||||
.matches(/^55\d+$/, "The number must start with 55.")
|
// .matches(/^55\d+$/, "The number must start with 55.")
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -176,7 +176,7 @@ export const update = async (
|
||||||
name: Yup.string(),
|
name: Yup.string(),
|
||||||
number: Yup.string()
|
number: Yup.string()
|
||||||
.matches(/^\d+$/,"Invalid number format. Only numbers is allowed.")
|
.matches(/^\d+$/,"Invalid number format. Only numbers is allowed.")
|
||||||
.matches(/^55\d+$/, "The number must start with 55.")
|
// .matches(/^55\d+$/, "The number must start with 55.")
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue