implement getBlobPathFromHex

This commit is contained in:
ansuz
2017-04-27 12:47:21 +02:00
parent f50aa5c29b
commit a97e7223f1
2 changed files with 5 additions and 0 deletions

View File

@@ -266,5 +266,9 @@ Version 2
return hex;
};
var getBlobPath = Hash.getBlobPathFromHex = function (id) {
return '/blob/' + id.slice(0,2) + '/' + id;
};
return Hash;
});