Skip to content

Commit

Permalink
feat(engine): remove emoji question, time save mindset, but custom limit
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Jul 24, 2020
1 parent 8dfd38e commit d65b560
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ module.exports = (options) => {
filter(value) {
return value.trim().toLowerCase();
},
}, {
type: 'confirm',
name: 'isEmoji',
message: 'Emoji by default ?',
default: true,
}, {
type: 'input',
name: 'emoji',
message: 'Your own Emoji :\n',
when(answers) {
return !answers.isEmoji;
},
}, {
type: 'input',
name: 'subject',
Expand Down Expand Up @@ -156,8 +144,8 @@ module.exports = (options) => {
const scope = answers.scope ? `(${answers.scope})` : '';

// add emoji
let emoji = '';
if (answers.isEmoji) emoji = answers.isEmoji ? ` ${config.emojis[answers.type]}` : ` ${answers.emoji}`;
let emoji = ` ${config.emojis[answers.type]}`;

// Hard limit this line in the validate
const head = `${answers.type + scope}: ${answers.subject}${emoji}`;

Expand Down

0 comments on commit d65b560

Please sign in to comment.