second round of review
This commit is contained in:
parent
7140cf6f27
commit
bbc5625b2d
3 changed files with 24 additions and 27 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue