We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d313b commit 9f99dd2Copy full SHA for 9f99dd2
lib/hexo/scaffold.js
@@ -26,7 +26,7 @@ class Scaffold {
26
if (!exist) return [];
27
28
return listDir(scaffoldDir, {
29
- ignoreFilesRegex: /^_|\/_/
+ ignorePattern: /^_|\/_/
30
});
31
}).map(item => ({
32
name: item.substring(0, item.length - extname(item).length),
lib/plugins/console/generate.js
@@ -133,7 +133,7 @@ class Generater {
133
// Check the public folder
134
return stat(publicDir).then(stats => {
135
if (!stats.isDirectory()) {
136
- throw new Error('%s is not a directory', magenta(tildify(publicDir)));
+ throw new Error(`${magenta(tildify(publicDir))} is not a directory`);
137
}
138
}).catch(err => {
139
// Create public folder if not exists
0 commit comments