From a2587167edfc7e3cccfa81996cbc31cead683a26 Mon Sep 17 00:00:00 2001 From: segayuu Date: Mon, 5 Nov 2018 10:23:41 +0900 Subject: [PATCH] Fix test error --- lib/hexo/load_config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hexo/load_config.js b/lib/hexo/load_config.js index a20f22e5d0..6d9d3f890b 100644 --- a/lib/hexo/load_config.js +++ b/lib/hexo/load_config.js @@ -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); }); }