relative path trailing slash fix

This commit is contained in:
hamza zia 2013-01-17 22:23:01 +05:00
parent c1735267fb
commit fd9b5207af

View File

@ -406,7 +406,7 @@ function getTemplateCtx(data) {
chunks: chunks,
files: data.files.map(function(e) {
e.size = changeLength(e.length, "B");
e.path = e.path.replace(/\\/g, '/').replace(data.dir, './');
e.path = e.path.replace(/\\/g, '/').replace(data.dir, '.');
return e
}),
bittorrent: !!data.bittorrent