6.0.0-alpha10
5/14/25

[#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 07/12/2013 (4324 days ago)
Due
Updated 07/12/2013 (4324 days ago)
Assigned 07/12/2013 (4324 days ago)
Resolved
Milestone
Patch No

History
07/12/2013 04:18:47 PM Michael Rubinsky Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
07/12/2013 03:43:06 PM x (dot) van_dessel (at) ieee (dot) org Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
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