More checks

main
Bob Mottram 2021-02-09 22:29:57 +00:00
parent 496e37bc91
commit 2e6fe854f8
1 changed files with 2 additions and 0 deletions

View File

@ -389,6 +389,8 @@ def validHashTag(hashtag: str) -> bool:
'ŴŵÝýŸÿŶŷŹźŽžŻż')
if set(hashtag).issubset(validChars):
return True
if '#' in hashtag or '"' in hashtag or '&' in hashtag:
return False
if isValidLanguage(hashtag):
return True
return False