We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b37ca commit bb9daabCopy full SHA for bb9daab
lib/auth.js
@@ -19,7 +19,7 @@ function check(username, token) {
19
if (typeof username !== 'string') {
20
errorExit(`username must be a string, received ${typeof username}`);
21
}
22
- if (!/^[a-zA-Z0-9\-]+$/.test(username)) {
+ if (!/^[a-zA-Z0-9-]+$/.test(username)) {
23
errorExit(`username must be alphanumeric, received ${username}`);
24
25
if (typeof token !== 'string') {
0 commit comments