From 1127a78abdaba0274d8fb5cc40ebeb78d1f1a922 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 21 May 2016 16:06:07 -0500 Subject: [PATCH] CLI: Isolated numbers upgraded to hours by concatenating ':00' --- src/CLI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index 327595a1..90b9c03a 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -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" ||