diff --git a/backend/src/api/routes/quotes.ts b/backend/src/api/routes/quotes.ts index d562488d7..49e50562f 100644 --- a/backend/src/api/routes/quotes.ts +++ b/backend/src/api/routes/quotes.ts @@ -39,8 +39,8 @@ router.post( RateLimit.newQuotesAdd, validateRequest({ body: { - text: joi.string().min(60).regex(/^\w+$/).required(), - source: joi.string().regex(/^\w+$/).required(), + text: joi.string().min(60).required(), + source: joi.string().required(), language: joi.string().regex(/^\w+$/).required(), captcha: joi.string().required(), },