Skip to content

Commit 72d75bb

Browse files
committed
Use correct, lower length limit
1 parent ab80494 commit 72d75bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npm-user-validate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports.username = username
44

55
var requirements = exports.requirements = {
66
username: {
7-
length: 'Name length must be less than or equal to 576 characters long',
7+
length: 'Name length must be less than or equal to 214 characters long',
88
lowerCase: 'Name must be lowercase',
99
urlSafe: 'Name may not contain non-url-safe chars',
1010
dot: 'Name may not start with "."'
@@ -28,7 +28,7 @@ function username (un) {
2828
return new Error(requirements.username.dot)
2929
}
3030

31-
if (un.length > 576) {
31+
if (un.length > 214) {
3232
return new Error(requirements.username.length)
3333
}
3434

0 commit comments

Comments
 (0)