mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
test: add dot-separated middle-of-text date false positive test (#2195)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user