diff --git a/parser.cpp b/parser.cpp index 6b5661f..536bbde 100644 --- a/parser.cpp +++ b/parser.cpp @@ -72,7 +72,11 @@ std::string Parser::extractCommand(std::string cmdname, std::string content) con if(std::regex_match(content, match, reg)) { - return match.str(2); + if(match.size() > 1) + { + return match.str(2); + + } } return ""; }