Avoid lone hashes

main
Bob Mottram 2020-10-16 20:52:27 +01:00
parent a60491585e
commit a5d21852bb
1 changed files with 3 additions and 2 deletions

View File

@ -66,6 +66,7 @@ def getNewswireTags(text: str) -> []:
tags = [] tags = []
for wrd in words: for wrd in words:
if wrd.startswith('#'): if wrd.startswith('#'):
if len(wrd) > 1:
if wrd not in tags: if wrd not in tags:
tags.append(wrd) tags.append(wrd)
return tags return tags