relative path trailing slash fix
This commit is contained in:
parent
c1735267fb
commit
fd9b5207af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user