Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb9daab

Browse files
authoredMar 19, 2022
Update lib/auth.js
1 parent b2b37ca commit bb9daab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function check(username, token) {
1919
if (typeof username !== 'string') {
2020
errorExit(`username must be a string, received ${typeof username}`);
2121
}
22-
if (!/^[a-zA-Z0-9\-]+$/.test(username)) {
22+
if (!/^[a-zA-Z0-9-]+$/.test(username)) {
2323
errorExit(`username must be alphanumeric, received ${username}`);
2424
}
2525
if (typeof token !== 'string') {

0 commit comments

Comments
 (0)
Please sign in to comment.