We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b0901 commit 610091eCopy full SHA for 610091e
query-grammar/src/query_grammar.rs
@@ -1693,4 +1693,15 @@ mod test {
1693
fn test_invalid_field() {
1694
test_is_parse_err(r#"!bc:def"#, "!bc:def");
1695
}
1696
+
1697
+ #[test]
1698
+ fn test_space_before_value() {
1699
+ test_parse_query_to_ast_helper("field : a", r#""field":a"#);
1700
+ test_parse_query_to_ast_helper("field: a", r#""field":a"#);
1701
+ test_parse_query_to_ast_helper("field :a", r#""field":a"#);
1702
+ test_parse_query_to_ast_helper(
1703
+ "field : 'happy tax payer' AND other_field : 1",
1704
+ r#"(+"field":'happy tax payer' +"other_field":1)"#,
1705
+ );
1706
+ }
1707
0 commit comments