mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
Fixed sinopia to allow old tarballs with @ in them
This commit is contained in:
parent
a79fa68deb
commit
21f7f03cf7
1 changed files with 1 additions and 2 deletions
|
@ -10,8 +10,7 @@ module.exports.validate_name = function(name) {
|
|||
if (
|
||||
name.charAt(0) === '.' || // ".bin", etc.
|
||||
name.charAt(0) === '-' || // "-" is reserved by couchdb
|
||||
name.match(/[\/@\s\+%:]/) ||
|
||||
name !== encodeURIComponent(name) ||
|
||||
name.match(/[\/\s\+%:]/) ||
|
||||
name === 'node_modules' ||
|
||||
name === '__proto__' ||
|
||||
name === 'package.json' ||
|
||||
|
|
Loading…
Add table
Reference in a new issue