Skip to content

Commit

Permalink
add support for quotation marks in string queries
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Aug 24, 2024
1 parent c51fe8e commit 03c2529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jamesql/rewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
comparison: TERM OPERATOR WORD
range_query: TERM "[" WORD "," WORD "]"
word_query: WORD
field_query: TERM ":" "'" MULTI_WORD "'" | TERM ":" WORD
field_query: TERM ":" "'" MULTI_WORD "'" | TERM ":" WORD | TERM ":" DOUBLE_QUOTE MULTI_WORD DOUBLE_QUOTE
negate_query: "-" "'" MULTI_WORD "'" | "-" WORD
OPERATOR: ">" | "<" | ">=" | "<="
DOUBLE_QUOTE: "\\""
WORD: /[a-zA-Z0-9_.!?*-]+/
MULTI_WORD: /[a-zA-Z0-9 ]+/
TERM: /[a-zA-Z0-9_]+/
Expand Down

0 comments on commit 03c2529

Please sign in to comment.