mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Avoid lone hashes
This commit is contained in:
1 parent
a60491585e
commit
a5d21852bb
1 file changed
+3
-2
+3
-2
@@ -66,8 +66,9 @@ def getNewswireTags(text: str) -> []:
|
||||
tags = []
|
||||
for wrd in words:
|
||||
if wrd.startswith('#'):
|
||||
if wrd not in tags:
|
||||
tags.append(wrd)
|
||||
if len(wrd) > 1:
|
||||
if wrd not in tags:
|
||||
tags.append(wrd)
|
||||
return tags
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user