mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 21:29:12 +00:00
Extract date filters quoted with non-ascii quotes in query
This commit is contained in:
@@ -21,7 +21,7 @@ class DateFilter(BaseFilter):
|
||||
# - dt>="yesterday" dt<"tomorrow"
|
||||
# - dt>="last week"
|
||||
# - dt:"2 years ago"
|
||||
date_regex = r"dt([:><=]{1,2})[\"'](.*?)[\"']"
|
||||
date_regex = r"dt([:><=]{1,2})[\"'‘’](.*?)[\"'‘’]"
|
||||
|
||||
def __init__(self, entry_key="compiled"):
|
||||
self.entry_key = entry_key
|
||||
|
||||
Reference in New Issue
Block a user