Skip to content

Commit

Permalink
Merge pull request #248 from fox-forks/hyperupcall-fix-bad-space
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored Oct 19, 2024
2 parents 405baac + c2f0fbb commit f8a2cf5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doctoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ var path = require('path')
function cleanPath(path) {
var homeExpanded = (path.indexOf('~') === 0) ? process.env.HOME + path.substr(1) : path;

// Escape all spaces
return homeExpanded.replace(/\s/g, '\\ ');
return homeExpanded;
}

function transformAndSave(files, mode, maxHeaderLevel, title, notitle, entryPrefix, processAll, stdOut, updateOnly) {
Expand Down

0 comments on commit f8a2cf5

Please sign in to comment.