Skip to content

Commit

Permalink
Update validations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saraBadawi authored Jan 4, 2025
1 parent 33be82d commit ec14a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Course3/Lab4/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def validate_user(username, minlen):
if not re.match('^[a-z0-9._]*$', username):
return False
# Usernames can't begin with a number
if username[0].isnumeric():
if not username[0].isnumeric():
return False
return True

Expand Down

0 comments on commit ec14a47

Please sign in to comment.