removed regex

This commit is contained in:
Miodec 2022-11-16 00:14:55 +01:00
parent 6458029d0a
commit 32bdcbbec0

View file

@ -56,8 +56,8 @@ router.post(
validateRequest({
body: {
quoteId: joi.string().required(),
editText: joi.string().regex(/^\w+$/).allow(null),
editSource: joi.string().regex(/^\w+$/).allow(null),
editText: joi.string().allow(null),
editSource: joi.string().allow(null),
},
validationErrorMessage: "Please fill all the fields",
}),