[Tickets #12454] Date parser in quick task traps all word numbers

noreply at bugs.horde.org noreply at bugs.horde.org
Fri Jul 12 15:43:07 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12454
------------------------------------------------------------------------------
  Ticket             | 12454
  Created By         | x.van_dessel at ieee.org
  Summary            | Date parser in quick task traps all word numbers
  Queue              | Nag
  Version            | 4.1.0
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


x.van_dessel at ieee.org (2013-07-12 15:43) wrote:

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.







More information about the bugs mailing list