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 a7c1b2e commit e88026cCopy full SHA for e88026c
lib/auth.js
@@ -20,7 +20,7 @@ function check(username, token) {
20
errorExit(`username must be a string, received ${typeof username}`);
21
}
22
if (!/^[a-zA-Z0-9-]+$/.test(username)) {
23
- errorExit(`username must be alphanumeric, received ${username}`);
+ errorExit(`username may only contain alphanumeric characters or hyphens, received ${username}`);
24
25
if (typeof token !== 'string') {
26
errorExit(`token must be a string, received ${typeof token}`);
0 commit comments