regexhq/regex-username

GitHub doesn't allow an underscore

Closed this issue · 1 comments

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.

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