Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function returns true when the username does not start with a letter. #35018

Open
KaterynaDudko opened this issue Mar 26, 2024 · 2 comments · May be fixed by #35019
Open

Function returns true when the username does not start with a letter. #35018

KaterynaDudko opened this issue Mar 26, 2024 · 2 comments · May be fixed by #35019

Comments

@KaterynaDudko
Copy link

KaterynaDudko commented Mar 26, 2024

Expected Behavior

False
False

Actual Behavior

True
True

Steps to Reproduce the Problem

  1. cd Course3/Lab4
  2. nano validations.py
  3. Add the following lines of code at the end of the script:
    print(validate_user(".blue.kale", 3)) # Currently True, should be False
    print(validate_user("_red_quinoa", 4)) # Currently True, should be False
  4. nano validations.py

Specifications

  • Version:
  • Platform:
KaterynaDudko added a commit to KaterynaDudko/it-cert-automation-practice that referenced this issue Mar 26, 2024
Fix validations.py to return false if the username starts with "." or "_"
@KaterynaDudko KaterynaDudko linked a pull request Mar 26, 2024 that will close this issue
2 tasks
@justzh

This comment was marked as spam.

@justzh

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants