From 87c380ab6fb36fe8512844b5eb91211be58a295a Mon Sep 17 00:00:00 2001 From: Mhd Zayd Skaff Date: Sun, 20 Jul 2025 13:49:15 +0300 Subject: [PATCH] fix validation --- src/booking/dtos/booking-request.dto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/booking/dtos/booking-request.dto.ts b/src/booking/dtos/booking-request.dto.ts index b8043b7..36ba985 100644 --- a/src/booking/dtos/booking-request.dto.ts +++ b/src/booking/dtos/booking-request.dto.ts @@ -7,8 +7,8 @@ export class BookingRequestDto { example: '07-2025', }) @IsNotEmpty() - @Matches(/^(0[1-9]|1[0-2])\/\d{4}$/, { - message: 'Date must be in MM-YYYY format', + @Matches(/^(0[1-9]|1[0-2])\-\d{4}$/, { + message: 'Date must be in MM/YYYY format', }) month: string;