From cee258edc3b216bdf7d0e9241c263180f46a2f48 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 6 Feb 2026 10:09:32 +0100 Subject: [PATCH] refactor: remove unnecessary comment from getDateFromText() --- frontend/src/helpers/time/parseDate.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/helpers/time/parseDate.ts b/frontend/src/helpers/time/parseDate.ts index 170aaa9af..caf0f885d 100644 --- a/frontend/src/helpers/time/parseDate.ts +++ b/frontend/src/helpers/time/parseDate.ts @@ -163,8 +163,6 @@ const addTimeToDate = (text: string, date: Date, previousMatch: string | null): } export const getDateFromText = (text: string, now: Date = new Date()) => { - // Each entry is the inner date pattern (the part between the boundary anchors). - // Original regexes were: /(^| )(?PATTERN)($| )/gi const datePatterns: string[] = [ '(?(?[0-9][0-9]?)\\/(?[0-9][0-9]?)(\\/(?[0-9][0-9]([0-9][0-9])?))?)', '(?(?[0-9][0-9][0-9][0-9]?)\\/(?[0-9][0-9]?)\\/(?[0-9][0-9]))',