diff --git a/core/util.rs b/core/util.rs index 295989cee..82c7cb3c2 100644 --- a/core/util.rs +++ b/core/util.rs @@ -878,7 +878,10 @@ fn parse_numeric_str(text: &str) -> Result<(OwnedValueType, &str), ()> { let text = text.trim(); let bytes = text.as_bytes(); - if matches!(bytes, [b'e', ..] | [b'E', ..] | [b'.', b'e' | b'E', ..]) { + if matches!( + bytes, + [] | [b'e', ..] | [b'E', ..] | [b'.', b'e' | b'E', ..] + ) { return Err(()); }