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

Updated validations.py python script. #31501

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LitusCompeticio
Copy link

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.

Closes: #1

Fixes #30197

It's a good idea to open an issue first for discussion.

  • [ print(validate_user("blue.kale", 3)) # True
    print(validate_user(".blue.kale", 3)) # Currently True, should be False
    print(validate_user("red_quinoa", 4)) # True
    print(validate_user("_red_quinoa", 4)) # Currently True, should be False] Tests pass
  • [Add check of the first character as only letters are allowed in the first character of the username. ] Appropriate changes to README are included in PR

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
@google-cla
Copy link

google-cla bot commented Aug 21, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions
Copy link

Stale PRs will be automatically closed to keep this repo clean. If there is no activity on this PR in the next 7 days, this PR will be closed.

@github-actions github-actions bot added the Stale label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update validation. py Python script Course3/Lab4: Usernames should always start with letters
1 participant