mirror of https://gitlab.com/bashrc2/epicyon
Check length of nickname
parent
d26d2ec8df
commit
9d86bc0f74
4
utils.py
4
utils.py
|
@ -1613,6 +1613,10 @@ def _isReservedName(nickname: str) -> bool:
|
|||
def validNickname(domain: str, nickname: str) -> bool:
|
||||
"""Is the given nickname valid?
|
||||
"""
|
||||
if len(nickname) == 0:
|
||||
return False
|
||||
if len(nickname) > 30:
|
||||
return False
|
||||
if not isValidLanguage(nickname):
|
||||
return False
|
||||
forbiddenChars = ('.', ' ', '/', '?', ':', ';', '@', '#')
|
||||
|
|
Loading…
Reference in New Issue