Check for zero length categories

main
bashrc 2026-03-18 11:54:56 +00:00
parent eefc840ea1
commit ca9c6080d8
1 changed files with 3 additions and 1 deletions

View File

@ -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