diff --git a/ofborg/src/commentparser.rs b/ofborg/src/commentparser.rs index a0447b7..31e7989 100644 --- a/ofborg/src/commentparser.rs +++ b/ofborg/src/commentparser.rs @@ -48,7 +48,7 @@ named!( value!(None, many_till!(take!(1), tag_no_case!("@grahamcofborg"))) ) )))) >> eof!() - >> (Some(res.into_iter().filter_map(|x| x).collect())) + >> (Some(res.into_iter().flatten().collect())) ) | value!(None) ) );