mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
increase precedence of escape matching in match_query
This commit is contained in:
parent
59029c24e2
commit
44e592e382
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ const tokenList = [
|
||||||
['not_op', /^\s*NOT(?:\s+|(?=\())/],
|
['not_op', /^\s*NOT(?:\s+|(?=\())/],
|
||||||
['not_op', /^\s*[!-]\s*/],
|
['not_op', /^\s*[!-]\s*/],
|
||||||
['space', /^\s+/],
|
['space', /^\s+/],
|
||||||
['word', /^(?:[^\s,()^~]|\\[\s,()^~])+/],
|
['word', /^(?:\\[\s,()^~]|[^\s,()^~])+/],
|
||||||
['word', /^(?:[^\s,()]|\\[\s,()])+/]
|
['word', /^(?:\\[\s,()]|[^\s,()])+/]
|
||||||
],
|
],
|
||||||
numberFields = ['id', 'width', 'height', 'aspect_ratio',
|
numberFields = ['id', 'width', 'height', 'aspect_ratio',
|
||||||
'comment_count', 'score', 'upvotes', 'downvotes',
|
'comment_count', 'score', 'upvotes', 'downvotes',
|
||||||
|
|
Loading…
Reference in a new issue