Skip to content

GitHub doesn't allow an underscore #2

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

Closed
sorashi opened this issue Sep 13, 2017 · 1 comment
Closed

GitHub doesn't allow an underscore #2

sorashi opened this issue Sep 13, 2017 · 1 comment

Comments

@sorashi
Copy link

sorashi commented Sep 13, 2017

chrome_2017-09-13_19-52-19

var regex = require("regex-username");
regex().test("hello_world"); // true

\w is an equivalent to [a-zA-Z0-9_].
\w captures _, but GitHub doesn't allow it in your username.

@tunnckoCore
Copy link
Member

It's probably something new, cuz i was trying it back than

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants