From 32bdcbbec0ced799638c93380289df22f8f1e328 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 16 Nov 2022 00:14:55 +0100 Subject: [PATCH] removed regex --- backend/src/api/routes/quotes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/routes/quotes.ts b/backend/src/api/routes/quotes.ts index 49e50562f..e25aefeb0 100644 --- a/backend/src/api/routes/quotes.ts +++ b/backend/src/api/routes/quotes.ts @@ -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", }),