mirror of https://gitlab.com/bashrc2/epicyon
Check for zero length categories
parent
eefc840ea1
commit
ca9c6080d8
|
|
@ -230,9 +230,11 @@ def _valid_hashtag_category(category: str) -> bool:
|
|||
if char in category:
|
||||
return False
|
||||
|
||||
# too long
|
||||
# too long or too short
|
||||
if len(category) > 40:
|
||||
return False
|
||||
elif len(category) == 0:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue