bump: 3.6.5

This commit is contained in:
qingwei.li 2017-04-28 09:56:58 +08:00
commit ee54141776
3 changed files with 9 additions and 4 deletions

View file

@ -314,7 +314,9 @@ var getParentPath = cached(function (path) {
});
var cleanPath = cached(function (path) {
return path.replace(/([^:])\/{2,}/g, '$1/')
return path
.replace(/^\/+/, '/')
.replace(/([^:])\/{2,}/g, '$1/')
});
function replaceHash (path) {