6.0.0-git
2018-12-16

[#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 (at)
Requester x.van_dessel (at) ieee (dot) org
Created 2013-07-12 (1983 days ago)
Due
Updated 2013-07-12 (1983 days ago)
Assigned 2013-07-12 (1983 days ago)
Resolved
Milestone
Patch No

History
2013-07-12 16:18:47 Michael Rubinsky Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
2013-07-12 15:43:06 x (dot) van_dessel (at) ieee (dot) org Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Date parser in quick task traps all word numbers
Queue ⇒ Nag
Milestone ⇒
Patch ⇒ No
Reply to this comment
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 
untouched.

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


Saved Queries