increase precedence of escape matching in match_query

This commit is contained in:
byte[] 2023-02-25 20:25:32 -05:00
parent 59029c24e2
commit 44e592e382

View file

@ -15,8 +15,8 @@ const tokenList = [
['not_op', /^\s*NOT(?:\s+|(?=\())/],
['not_op', /^\s*[!-]\s*/],
['space', /^\s+/],
['word', /^(?:[^\s,()^~]|\\[\s,()^~])+/],
['word', /^(?:[^\s,()]|\\[\s,()])+/]
['word', /^(?:\\[\s,()^~]|[^\s,()^~])+/],
['word', /^(?:\\[\s,()]|[^\s,()])+/]
],
numberFields = ['id', 'width', 'height', 'aspect_ratio',
'comment_count', 'score', 'upvotes', 'downvotes',