Check for invalid hashtag

main
Bob Mottram 2021-02-08 21:31:18 +00:00
parent 11fd50419d
commit 74a8e39509
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ def validHashTag(hashtag: str) -> bool:
'abcdefghijklmnopqrstuvwxyz' +
'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
if set(hashtag).issubset(validChars):
return True
if '&' not in hashtag:
return True
return False