From d1f1bfe0711073c895d36f3cad4c555cb06ef185 Mon Sep 17 00:00:00 2001 From: mpostma Date: Mon, 27 Apr 2020 15:36:04 +0200 Subject: [PATCH] fix floats bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update CHANGELOG.md Co-Authored-By: Clément Renault --- CHANGELOG.md | 1 + meilisearch-core/src/filters/parser/grammar.pest | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fb58843a..23cacf757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## v0.10.1 (unreleased) + - Add support for floating points in filters (#640) - Add '@' character as tokenizer separator (#607) - Add support for filtering on arrays of strings (#611) diff --git a/meilisearch-core/src/filters/parser/grammar.pest b/meilisearch-core/src/filters/parser/grammar.pest index 79c97c011..e7095bb63 100644 --- a/meilisearch-core/src/filters/parser/grammar.pest +++ b/meilisearch-core/src/filters/parser/grammar.pest @@ -2,7 +2,7 @@ key = _{quoted | word} value = _{quoted | word} quoted = _{ (PUSH("'") | PUSH("\"")) ~ string ~ POP } string = {char*} -word = ${(LETTER | NUMBER | "_" | "-")+} +word = ${(LETTER | NUMBER | "_" | "-" | ".")+} char = _{ !(PEEK | "\\") ~ ANY | "\\" ~ (PEEK | "\\" | "/" | "b" | "f" | "n" | "r" | "t")