From 829b10bfd22afa429e742707b65dfedd42669258 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 6 Feb 2026 09:59:01 +0100 Subject: [PATCH] test: add dot-separated middle-of-text date false positive test (#2195) --- frontend/src/modules/parseTaskText.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/modules/parseTaskText.test.ts b/frontend/src/modules/parseTaskText.test.ts index 9d9ca421b..55bb16d90 100644 --- a/frontend/src/modules/parseTaskText.test.ts +++ b/frontend/src/modules/parseTaskText.test.ts @@ -377,6 +377,13 @@ describe('Parse Task Text', () => { expect(result.date).toBeNull() }) }) + + it('should not parse a dot-separated date from the middle of text', () => { + const result = parseTaskText('The 1.2 formula') + + expect(result.text).toBe('The 1.2 formula') + expect(result.date).toBeNull() + }) }) it('should not recognize date number with no spacing around them', () => { const result = parseTaskText('Lorem Ispum v1.1.1')