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]))',