CommandParser: skip newline character

This commit is contained in:
Josh Holtrop 2017-01-27 20:43:00 -05:00
parent 3fc7dc62f8
commit 3bcc360c81

View File

@ -27,7 +27,11 @@ bool CommandParser::parse(const EncodedString & command)
while (it != end)
{
uint32_t cp = *it;
if ((quote != 0u) && (cp == quote))
if (cp == '\n')
{
/* Skip newline character */
}
else if ((quote != 0u) && (cp == quote))
{
quote = 0u;
}