CommandParser: skip newline character
This commit is contained in:
1 parent
3fc7dc62f8
commit
3bcc360c81
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user