mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CLI: Isolated numbers upgraded to hours by concatenating ':00'
This commit is contained in:
parent
844045d5ba
commit
1127a78abd
1 changed files with 8 additions and 0 deletions
|
@ -409,6 +409,14 @@ void CLI::identifyFilter ()
|
|||
a.tag ("FILTER");
|
||||
}
|
||||
|
||||
else if (a._lextype == Lexer::Type::number)
|
||||
{
|
||||
// Upgrade numbers to hours.
|
||||
a.attribute ("raw", raw + ":00");
|
||||
a._lextype = Lexer::Type::date;
|
||||
a.tag ("FILTER");
|
||||
}
|
||||
|
||||
else if (raw == "from" ||
|
||||
raw == "since" ||
|
||||
raw == "to" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue