Skip to content
Browse files

Allow existing packages to use upper case chars in names

They should be grandfathered in.
  • Loading branch information...
1 parent f67e34a commit 9345d3b6c3d8510dd5c4418f27ee1fce59acebad @isaacs isaacs committed Feb 13, 2014
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)

0 comments on commit 9345d3b

Please sign in to comment.
Something went wrong with that request. Please try again.