Quick check for hashtags

main
Bob Mottram 2020-10-16 21:46:34 +01:00
parent af3b7baf12
commit 5ed417138a
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ def rss2Footer() -> str:
def getNewswireTags(text: str) -> []: def getNewswireTags(text: str) -> []:
"""Returns a list of hashtags found in the given text """Returns a list of hashtags found in the given text
""" """
if '#' not in text:
return []
if ' ' not in text: if ' ' not in text:
return [] return []
textSimplified = \ textSimplified = \