Skip to content

Commit

Permalink
Update coordination.py
Browse files Browse the repository at this point in the history
corrected the regex in the validator for username
  • Loading branch information
jason-chao authored Mar 7, 2023
1 parent cf90ede commit 1b8f099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apptraffic-control/coordination.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def is_valid_username(self, input):
return False
if not checkers.has_length(input, minimum=6):
return False
if not re.search("[a-z]", input):
if re.search("[^a-z]", input):
return False
return True

Expand Down

0 comments on commit 1b8f099

Please sign in to comment.