mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
use encodeURIComponent and replace encoded '@' value with un-encoded value
This commit is contained in:
parent
a9c749995a
commit
ee6cf0eb9f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ var Logger = require('./logger')
|
|||
var MyStreams = require('./streams')
|
||||
var Utils = require('./utils')
|
||||
var encode = function(thing) {
|
||||
return thing.replace('/', '%2f');
|
||||
return encodeURIComponent(thing).replace(/^%40/, '@');
|
||||
};
|
||||
|
||||
module.exports = Storage
|
||||
|
|
Loading…
Reference in a new issue