CLI: Isolated numbers upgraded to hours by concatenating ':00'

This commit is contained in:
Paul Beckingham 2016-05-21 16:06:07 -05:00
parent 844045d5ba
commit 1127a78abd

View file

@ -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" ||