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

Bad regexp - usernameRegexp = ^([a-zA-Z0-9_.-@])+$ #192

Open
Glaolle opened this issue Mar 13, 2023 · 2 comments
Open

Bad regexp - usernameRegexp = ^([a-zA-Z0-9_.-@])+$ #192

Glaolle opened this issue Mar 13, 2023 · 2 comments

Comments

@Glaolle
Copy link

Glaolle commented Mar 13, 2023

For test enter: test-test
Change to usernameRegexp = ^([a-zA-Z0-9_.\-@])+$

@pmoranga
Copy link

Are u sure those should be valid:

  • @test
  • -test
  • test-
  • .test

I think you need to have a regex that ensure such special characters just in the middle of the string.

@Glaolle
Copy link
Author

Glaolle commented Apr 19, 2023

^[A-Za-z][A-Za-z0-9_\-.]+$

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

No branches or pull requests

2 participants