mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Fix crash on sign up
This commit is contained in:
parent
e2af9893ce
commit
5f42e35231
@ -26,7 +26,7 @@ YESES = ["yes", "true", "1", "on"]
|
||||
|
||||
def is_username_valid(username):
|
||||
return username is not None and len(username) >= 2 and \
|
||||
re.match(r"^[A-Za-z0-9._-]*$", username) and not re.match(r"^\.*$")
|
||||
re.match(r"^[A-Za-z0-9._-]*$", username) and not re.match(r"^\.*$", username)
|
||||
|
||||
|
||||
def isYes(val):
|
||||
|
Loading…
Reference in New Issue
Block a user