Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
19ddbeb2
Commit
19ddbeb2
authored
Jul 15, 2012
by
Clément Schreiner
Browse files
Remove 1-character terms from the query.
parent
e404d186
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/lib/axi.py
View file @
19ddbeb2
...
...
@@ -54,7 +54,7 @@ class XapianQuery(object):
query.
"""
regexp
=
r
'\w+'
return
re
.
findall
(
regexp
,
text
.
lower
())
return
filter
(
lambda
x
:
len
(
x
)
>
1
,
re
.
findall
(
regexp
,
text
.
lower
())
)
def
add_words
(
self
,
word_list
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment