From 49bab68efc944ed227337e0d0a10d66b2409df6d Mon Sep 17 00:00:00 2001 From: Jakob Frank Date: Tue, 16 Jul 2024 09:08:43 +0200 Subject: [PATCH] #377: Improve regex to detect date-time labels --- src/components/ParticipationDataList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ParticipationDataList.vue b/src/components/ParticipationDataList.vue index ce4fead..73644da 100644 --- a/src/components/ParticipationDataList.vue +++ b/src/components/ParticipationDataList.vue @@ -337,7 +337,7 @@ Licensed under the Elastic License 2.0. */ } function isValidDateTimeFormat(dateTimeString: string): boolean { - const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}\+\d{4}$/; + const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?[+-]\d{4}$/; return regex.test(dateTimeString); }