Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed Nov 5, 2018
1 parent 32ef029 commit a258716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hexo/load_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function findConfigPath(path) {
const { dir, name } = parse(path);

return fs.readdir(dir).then(files => {
const item = files.find(item => item.startsWith(basename));
if (item != null) return pathFn.join(dirname, item);
const item = files.find(item => item.startsWith(name));
if (item != null) return join(dir, item);
});
}

0 comments on commit a258716

Please sign in to comment.