Remove only the last character

main
Bob Mottram 2021-02-13 12:17:03 +00:00
parent ab6994329a
commit 58ba1146a4
1 changed files with 1 additions and 1 deletions

View File

@ -792,7 +792,7 @@ def addHtmlTags(baseDir: str, httpPrefix: str,
hashTagEndings = ('.', ':', ';', '-', '\n')
for ending in hashTagEndings:
if wordStr.endswith(ending):
wordStr = wordStr.replace(ending, '')
wordStr = wordStr[:len(wordStr) - 1]
if _addHashTags(wordStr, httpPrefix, originalDomain,
replaceHashTags, hashtags):