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

Is modifying the regular expression the most feasible solution? #35081

Open
mimodbland opened this issue Apr 8, 2024 · 1 comment · May be fixed by #35082
Open

Is modifying the regular expression the most feasible solution? #35081

mimodbland opened this issue Apr 8, 2024 · 1 comment · May be fixed by #35082

Comments

@mimodbland
Copy link

Expected Behavior

It is expected that users whose name does not begin with a letter cannot be registered, and that letters, numbers, periods, underscores can then be used, completing a minimum number of characters that is channeled as an argument.

Actual Behavior

By modifying the regular expression that conditions the revision of the username parameter, we modify the behavior in block, satisfying the first condition, it cannot begin without a letter, and the second, we can use letters, numbers, period and underscore below with a minimum limit passed by parameter

Steps to Reproduce the Problem

Pass username as a parameter, following:

1 .blue.kale
2 _red_quinoa
3 ?othe>user

@mimodbland mimodbland linked a pull request Apr 8, 2024 that will close this issue
2 tasks
@Jedi-KnightCoder
Copy link

I added an if statement at the top the function that returned False if the first index of the string is Not a Letter.

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