diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 6124ea8bf..f39cf307f 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -95,8 +95,14 @@ int CmdCustom::execute (std::string& output) */ // Prepend the argument list with those from the report filter. + std::string lexeme; + Lexer::Type type; + Lexer lex (reportFilter); + lex.ambiguity (false); std::vector filterArgs; - Lexer::word_split (filterArgs, reportFilter); + while (lex.token (lexeme, type)) + filterArgs.push_back (lexeme); + std::vector ::reverse_iterator arg; for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg) context.parser.captureFirst (*arg);