add two letters to strip

This commit is contained in:
OneNewDev 2022-06-06 12:17:55 +02:00
parent 0c6c621919
commit 710faa4611

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