aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-10-21 13:53:23 +0200
committercedricbonhomme <devnull@localhost>2010-10-21 13:53:23 +0200
commit6d6b6c57f8496597f7495e3e3a5b6a616518e368 (patch)
tree842719d62d8ddac237b6ee96e7a4e54daaae5b32 /utils.py
parentImprovements of the result page for the search). (diff)
downloadnewspipe-6d6b6c57f8496597f7495e3e3a5b6a616518e368.tar.gz
newspipe-6d6b6c57f8496597f7495e3e3a5b6a616518e368.tar.bz2
newspipe-6d6b6c57f8496597f7495e3e3a5b6a616518e368.zip
Improvements of the regular expression for tag clouds and search.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 0b33b4dd..34f3423a 100755
--- a/utils.py
+++ b/utils.py
@@ -162,7 +162,7 @@ def top_words(dic_articles, n=10, size=5):
Return the n most frequent words in a list.
"""
words = Counter()
- wordre = re.compile(r'\b\w{%s,}\b' % size)
+ wordre = re.compile(r'\b\w{%s,}\b' % size, re.I)
for rss_feed_id in dic_articles.keys():
for article in dic_articles[rss_feed_id]:
for word in wordre.findall(clear_string(article[4].encode('utf-8'))):
bgstack15