mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Extract date filters quoted with non-ascii quotes in query
This commit is contained in:
parent
6a8fd9bf33
commit
564491e164
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class DateFilter(BaseFilter):
|
||||||
# - dt>="yesterday" dt<"tomorrow"
|
# - dt>="yesterday" dt<"tomorrow"
|
||||||
# - dt>="last week"
|
# - dt>="last week"
|
||||||
# - dt:"2 years ago"
|
# - dt:"2 years ago"
|
||||||
date_regex = r"dt([:><=]{1,2})[\"'](.*?)[\"']"
|
date_regex = r"dt([:><=]{1,2})[\"'‘’](.*?)[\"'‘’]"
|
||||||
|
|
||||||
def __init__(self, entry_key="compiled"):
|
def __init__(self, entry_key="compiled"):
|
||||||
self.entry_key = entry_key
|
self.entry_key = entry_key
|
||||||
|
|
Loading…
Add table
Reference in a new issue