mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
Bug
- Fixed bug where the command line was incorrectly scanned, looking for 'cal', '/cal', 'calendar' or '/calendar'.
This commit is contained in:
parent
197524a5fc
commit
ee9199b4e0
1 changed files with 5 additions and 4 deletions
|
@ -324,10 +324,11 @@ void Arguments::categorize ()
|
|||
{
|
||||
arg->_third = "program"; // TODO Is this a problem for expressions that do not contain a program name?
|
||||
|
||||
if (arg->_first == "cal" ||
|
||||
arg->_first == "calendar" ||
|
||||
arg->_first.find ("/calendar") == arg->_first.length () - 9 ||
|
||||
arg->_first.find ("/cal") == arg->_first.length () - 4)
|
||||
|
||||
if ((arg->_first.length () >= 3 &&
|
||||
arg->_first.substr (arg->_first.length () - 3) == "cal") ||
|
||||
(arg->_first.length () >= 8 &&
|
||||
arg->_first.substr (arg->_first.length () - 8) == "calendar"))
|
||||
{
|
||||
arg->_first = "calendar";
|
||||
arg->_third = "command";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue