Don't trunkate web links

This commit is contained in:
bashrc committed 2019-10-25 19:27:32 +01:00
1 parent 93008d97b1
commit 65227e7c59
1 file changed
+4
+4
View File
@@ -237,6 +237,10 @@ def removeLongWords(content: str,maxWordLength: int,longWordsList: []) -> str:
for wordStr in longWordsList:
if wordStr.startswith('<'):
continue
if wordStr.startswith('http'):
continue
if '/' in wordStr:
continue
if len(wordStr[maxWordLength:])<maxWordLength:
content= \
content.replace(wordStr, \