We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a00c9f1 commit 24976d4Copy full SHA for 24976d4
create/index.js
@@ -11,7 +11,7 @@ const create = data => {
11
similarQuestions: JSON.parse(data.similarQuestions).map(q => q.title).join(', '),
12
description: getDescription(data.content),
13
};
14
- const dir = getPath(pageData.id, pageData.name);
+ const dir = getPath(pageData.id, pageData.name.replace(/\?/g, ''));
15
16
if (fs.existsSync(dir)) {
17
console.log(`${chalk.red('file already exists')}: ${chalk.blue(dir)}\n`);
0 commit comments