diff --git a/backend/src/api/routes/quotes.ts b/backend/src/api/routes/quotes.ts index 1ca025f41..9ad72098a 100644 --- a/backend/src/api/routes/quotes.ts +++ b/backend/src/api/routes/quotes.ts @@ -45,7 +45,10 @@ router.post( .string() .regex(/^[\w+]+$/) .required(), - captcha: joi.string().required(), + captcha: joi + .string() + .regex(/[\w-_]+/) + .required(), }, validationErrorMessage: "Please fill all the fields", }),