forked from indymedia/epicyon
Don't trunkate web links
This commit is contained in:
1 parent
93008d97b1
commit
65227e7c59
1 file changed
+4
@@ -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, \
|
||||
|
||||
Reference in new issue
Block a user