summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5cced85)
@decorate(QuestionManager.search, needs_origin=False)
def question_search(self, keywords):
@decorate(QuestionManager.search, needs_origin=False)
def question_search(self, keywords):
- repl_re = re.compile(r'[^\'-_\s\w]')
+ repl_re = re.compile(r"[^\'\-_\s\w]")
tsquery = " | ".join([k for k in repl_re.sub('', keywords).split(' ') if k])
return self.extra(
tsquery = " | ".join([k for k in repl_re.sub('', keywords).split(' ') if k])
return self.extra(