Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow existing packages to use upper case chars in names

They should be grandfathered in.
  • Loading branch information...
commit 9345d3b6c3d8510dd5c4418f27ee1fce59acebad 1 parent f67e34a
@isaacs isaacs authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/publish.js
View
4 lib/publish.js
@@ -18,8 +18,8 @@ function publish (data, tarball, cb) {
return cb(er)
}
- if (data.name !== encodeURIComponent(data.name).toLowerCase())
- return cb(new Error('invalid name: must be lowercase and url-safe'))
+ if (data.name !== encodeURIComponent(data.name))
+ return cb(new Error('invalid name: must be url-safe'))
var ver = semver.clean(data.version)
if (!ver)
Please sign in to comment.
Something went wrong with that request. Please try again.