From 65227e7c591ce6cfb5b33cc782679eb3a018daf4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 25 Oct 2019 19:27:32 +0100 Subject: [PATCH] Don't trunkate web links --- content.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content.py b/content.py index 49f8dfb3..c8f0c764 100644 --- a/content.py +++ b/content.py @@ -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:])