aboutsummaryrefslogtreecommitdiff
path: root/modules/title.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-28 12:25:23 +0000
committerGravatar jesopo2019-10-28 12:25:23 +0000
commit07a3ba52224a161f83ec66f72074d861ee7a9449 (patch)
tree8c8a22711585af2c5cb7b9ce10e4e0a0ea326116 /modules/title.py
parent_messag_factory._ should take a `tags` arg (diff)
signature
strip '"<>() from <title> words when checking for title/url difference
Diffstat (limited to 'modules/title.py')
-rw-r--r--modules/title.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/title.py b/modules/title.py
index 73d8c162..9179d279 100644
--- a/modules/title.py
+++ b/modules/title.py
@@ -26,7 +26,8 @@ class Module(ModuleManager.BaseModule):
title_words = []
for title_word in RE_WORDSPLIT.split(title):
if len(title_word) > 1 or title_word.isalpha():
- title_words.append(title_word.lower())
+ title_word = title_word.lower()
+ title_words.append(title_word.strip("'\"<>()"))
present = 0
for title_word in title_words: