diff --git a/src/CLI.cpp b/src/CLI.cpp index 82957218d..14a33696c 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -28,7 +28,6 @@ #include #include #include // TODO Remove. -#include #include #include #include @@ -2069,12 +2068,12 @@ bool CLI::isCommand (const std::string& raw) const // Valid tag // - Length > 1 // - Starts with +/- -// - Tag does not start with a digit +// - The rest matches ::isName bool CLI::isTag (const std::string& raw) const { if (raw.size () >= 2 && (raw[0] == '+' || raw[0] == '-') && - ! isdigit(raw[1]) && + isName (raw.substr (1)) && raw.find (' ') == std::string::npos) return true;