second round of review

This commit is contained in:
counterweight 2025-12-19 10:38:15 +01:00
parent 7140cf6f27
commit bbc5625b2d
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 24 additions and 27 deletions

View file

@ -34,8 +34,8 @@ def validate_telegram(value: str | None) -> str | None:
if not value.startswith("@"):
return "Telegram handle must start with @"
handle = value[1:] # Remove @
if len(handle) < 1:
handle = value[1:]
if not handle:
return "Telegram handle must have at least one character after @"
if len(handle) > 32: