Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/nicjansma/versionator
Browse files Browse the repository at this point in the history
Conflicts:
	test/map-path.test.js
  • Loading branch information
Paul Serby committed Aug 1, 2013
2 parents 92ee669 + 74e0163 commit 2a33c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/map-path.js
Expand Up @@ -25,6 +25,11 @@ module.exports = function(dirPath, params, callback) {
return callback(new Error('Path is required'))
}

// trim trailing slash
if (dirPath.substring(dirPath.length - 1) === '/') {
dirPath = dirPath.slice(0, -1);
}

function hash(filename, callback) {
var
md5sum = crypto.createHash('md5'),
Expand Down
2 changes: 1 addition & 1 deletion test/map-path.test.js
Expand Up @@ -113,4 +113,4 @@ describe('versionator', function() {
after(function(done) {
removeFiles(tmpPath, files, done);
});
});
});

0 comments on commit 2a33c21

Please sign in to comment.