From 564491e164a854a4982a038b8ae9a980efaa26a5 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 10 Oct 2024 03:58:20 -0700 Subject: [PATCH] Extract date filters quoted with non-ascii quotes in query --- src/khoj/search_filter/date_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/search_filter/date_filter.py b/src/khoj/search_filter/date_filter.py index 91967799..f533a455 100644 --- a/src/khoj/search_filter/date_filter.py +++ b/src/khoj/search_filter/date_filter.py @@ -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