Validations.py (Class3/Lab4) validates invalid usernames
mmehr2 opened this issue · comments
Michael L. Mehr commented
Expected Behavior
Return False when invalid username is passed
Actual Behavior
Returns True for username that starts with a number, dot, or underscore
Steps to Reproduce the Problem
- Test the function with input that starts with a number, dot, or underscore
- The return value is True instead of False
Specifications
The username must consist of letters, numbers, dots and underscores.
It must start with only a letter and be at least 1 character long.
- Version: 1?
- Platform: all