add some strip characters

This commit is contained in:
OneNewDev 2022-06-08 18:15:29 +02:00
parent b55a2543e6
commit 96c8c49030

View file

@ -52,7 +52,7 @@ class FileScanner(HTMLParser):
title_words = set(title.split('-'))
for word in words:
# Verschiedene Zeichen vom Anfang und Ende der Wörter entfernen.
tag_name = word.strip(".,:;!?\"'()«»")
tag_name = word.strip(".,:;!?\"'()-„“«» ")
# Leere Wörter ignorieren
if not tag_name:
continue