diff --git a/filter_parser/src/lib.rs b/filter_parser/src/lib.rs index 7153c5361..4623f9387 100644 --- a/filter_parser/src/lib.rs +++ b/filter_parser/src/lib.rs @@ -91,6 +91,9 @@ impl<'a> FilterCondition<'a> { } pub fn parse>(input: &'a str) -> Result { + if input.trim().is_empty() { + return Ok(Self::Empty); + } let span = Span::new(input); parse_expression::<'a, E>(span).finish().map(|(_rem, output)| output) }