mirror of https://gitlab.com/bashrc2/epicyon
Check for invalid hashtag
parent
11fd50419d
commit
74a8e39509
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue