mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Split q for context_re
This commit is contained in:
parent
c4e5947f87
commit
ac262bb012
@ -25,7 +25,7 @@ class BaseSearch(object):
|
|||||||
raise NotImplemented
|
raise NotImplemented
|
||||||
|
|
||||||
def query(self, q):
|
def query(self, q):
|
||||||
self.context_re = re.compile(q, re.I)
|
self.context_re = re.compile('|'.join(q.split()), re.I)
|
||||||
return self.handle_query(q)
|
return self.handle_query(q)
|
||||||
|
|
||||||
def handle_query(self, q):
|
def handle_query(self, q):
|
||||||
|
Loading…
Reference in New Issue
Block a user