Skip to content

Commit 7a43921

Browse files
authored
Merge pull request #38 from ekinbarut/master
Directory names with whitespaces are supported
2 parents c2a3f4b + a465fc3 commit 7a43921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/summary/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function Summary(options) {
9797
// The file is `readme.md`
9898
else if (_.isString(n['readme']) || _.isString(n['Readme']) || _.isString(n['README'])) {
9999
var readmeDir = n['readme'] || n['Readme'] || n['README'];
100-
desc += _.repeat(' ', step) + formatCatalog(key, '-') + readmeDir;
100+
desc += _.repeat(' ', step) + formatCatalog(key, '-') + readmeDir.replace(" ", "%20");
101101
} else {
102102
desc += _.repeat(' ', step) + "- " + prettyCatalogName(key) + "\n";
103103
}
@@ -112,7 +112,7 @@ function Summary(options) {
112112
return;
113113
}
114114

115-
desc += _.repeat(' ', step) + formatCatalog(key) + n;
115+
desc += _.repeat(' ', step) + formatCatalog(key) + n.replace(" ", "%20");
116116
}
117117
}
118118
});

0 commit comments

Comments
 (0)