Skip to content

Commit

Permalink
convert windows paths to posix
Browse files Browse the repository at this point in the history
  • Loading branch information
timgoeller committed Dec 17, 2020
1 parent adbff28 commit 82eef4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monotome/bin/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function walk(dir) {

const cwd = process.cwd()
walk(cwd).then((data) => {
data = data.map(data => data.split(path.sep).join(path.posix.sep))
data.sort((a, b) => a.localeCompare(b)); // sort lexicographically, so that sub-folders are under parent
var pattern = /(.*\/)+(.*\.md)/
var ignore = /\..*\/.*/ // ignore folders starting with a period, e.g. `.archives`
Expand Down

0 comments on commit 82eef4a

Please sign in to comment.