aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index f1cd70c6..3b7b9501 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -310,7 +310,7 @@ class Root:
in the description of the article.
"""
param, _, value = querystring.partition(':')
- wordre = re.compile(r'\b%s\b' % param.lower())
+ wordre = re.compile(r'\b%s\b' % param, re.I)
feed_id = None
if param == "Feed":
feed_id, _, querystring = value.partition(':')
@@ -325,7 +325,7 @@ class Root:
article_content = utils.clear_string(article[4].encode('utf-8'))
if not article_content:
utils.clear_string(article[2].encode('utf-8'))
- if wordre.findall(article_content.lower()) != []:
+ if wordre.findall(article_content) != []:
if article[5] == "0":
# not readed articles are in bold
not_read_begin = "<b>"
@@ -346,7 +346,7 @@ class Root:
article_content = utils.clear_string(article[4].encode('utf-8'))
if not article_content:
utils.clear_string(article[2].encode('utf-8'))
- if wordre.findall(article_content.lower()) != []:
+ if wordre.findall(article_content) != []:
if new_feed_section is True:
new_feed_section = False
html += """<h2><a name="%s"><a href="%s" rel="noreferrer"
bgstack15