-
Notifications
You must be signed in to change notification settings - Fork 35
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
Try to simplify the username regular expression, if possible #1985
Comments
Also, Github usernames can start with numbers, so we don't need to prevent our usernames from starting with numbers, in any case: // We can probably remove this from our regex
/^(?!\d) |
Also, Github usernames can have multiple hyphens, just not together. So, the following can be removed or modified: // Github usernames can have multiple hyphens, just not together
(?!.*-.*-) |
This was referenced Mar 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Pull request #1574 made changes to the username regular expression.
Before
After
Issue
We have recently modified the reqular expression, and had trouble understanding its purpose. The comment does not describe the regular expression.
Task
The text was updated successfully, but these errors were encountered: