We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab80494 commit 72d75bbCopy full SHA for 72d75bb
npm-user-validate.js
@@ -4,7 +4,7 @@ exports.username = username
4
5
var requirements = exports.requirements = {
6
username: {
7
- length: 'Name length must be less than or equal to 576 characters long',
+ length: 'Name length must be less than or equal to 214 characters long',
8
lowerCase: 'Name must be lowercase',
9
urlSafe: 'Name may not contain non-url-safe chars',
10
dot: 'Name may not start with "."'
@@ -28,7 +28,7 @@ function username (un) {
28
return new Error(requirements.username.dot)
29
}
30
31
- if (un.length > 576) {
+ if (un.length > 214) {
32
return new Error(requirements.username.length)
33
34
0 commit comments