forked from indymedia/epicyon
Avoid lone hashes
parent
a60491585e
commit
a5d21852bb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue