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

Fixing funcion in validations.py #35434

Open
Rud1095 opened this issue Jun 22, 2024 · 0 comments · May be fixed by #35435
Open

Fixing funcion in validations.py #35434

Rud1095 opened this issue Jun 22, 2024 · 0 comments · May be fixed by #35435

Comments

@Rud1095
Copy link

Rud1095 commented Jun 22, 2024

Function validate user() works incorrectly, because it doesn't match dots and underscores and the start of the username.

validate_user("blue.kale", 3) # True

validate_user(".blue.kale", 3) # Currently True, should be False

validate_user("red_quinoa", 4) # True

validate_user("_red_quinoa", 4) # Currently True, should be False

Rud1095 pushed a commit to Rud1095/it-cert-automation-practice that referenced this issue Jun 22, 2024
Closed google#35434
Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
@Rud1095 Rud1095 linked a pull request Jun 22, 2024 that will close this issue
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.

1 participant