command_parser: fix non-optional whitespace after report

This commit is contained in:
Astro 2019-09-18 23:25:40 +02:00
parent db1788bafb
commit 4e5de7831b

View File

@ -127,10 +127,7 @@ fn off_on(input: &[u8]) -> IResult<&[u8], bool> {
fn report(input: &[u8]) -> IResult<&[u8], Command> { fn report(input: &[u8]) -> IResult<&[u8], Command> {
preceded( preceded(
preceded( tag("report"),
tag("report"),
whitespace
),
alt(( alt((
preceded( preceded(
whitespace, whitespace,