Skip to content

Commit 3c17c1d

Browse files
committed
🐛 Fix: change includes for node 4 support
1 parent 4e5408d commit 3c17c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/promptConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const promptConfig = {
7070
const cli = inquirer.prompt(questions).then((answers) => {
7171
const message = answers.moreInfo ? `${answers.editor}` : `${answers.type} ${answers.description}`;
7272
/* istanbul ignore if */
73-
if (types.includes(answers.type.split(' ')[1])) {
73+
if (types.indexOf(answers.type.split(' ')[1]) !== -1) {
7474
return execa('git', ['commit', '-m', message])
7575
.then(result => console.log(result.stdout))
7676
.catch((err) => {

0 commit comments

Comments
 (0)