[#12454] Date parser in quick task traps all word numbers
Summary Date parser in quick task traps all word numbers
Queue Nag
Queue Version 4.1.0
Type Bug
State Assigned
Priority 1. Low
Owners Horde Developers
Requester x.van_dessel@ieee.org
Created 2013-07-12 (2835 days ago)
Updated 2013-07-12 (2835 days ago)
Assigned 2013-07-12 (2835 days ago)
Patch No

x.van_dessel@ieee.org 2013-07-12 15:43:06
When the language setting of the user is English, try putting in the 
following sentence when using the Quick Add task button:

Avoid Quinine freight is often done wrongly in seven weeks

The date parsing of "in seven weeks" is OK. However, the text of the 
task should be:
"Avoid Quinine freight is often done wrongly"
But it is replaced (due to the date parser detecting number words) into this:
"Avoid Qui9 fr8 is of10 d1 wrongly"
(I obviously crafted the original sentence to maximize the effect)

Suggested improvement: The date parser should only replace words by 
numbers if the word is on its own, not within another word. Thereby 
the calculation of the target date will still work (seven in this 
case) but any number word that is part of another word is left 

Test was repeated using the German language modules (and using German 
number words) and gave identical results.