Skip to content

Commit

Permalink
fix(panel): force name to have length
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Van Camp committed Jul 12, 2018
1 parent dca5efc commit 5bfa35c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generators/panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ module.exports = class extends Generator {
type: 'input',
name: 'name',
message: 'Your panel\'s name',
filter: _.kebabCase
filter: _.kebabCase,
validate(input) {
return input > 0;
}
}];

return this.prompt(prompts).then(props => {
Expand Down

0 comments on commit 5bfa35c

Please sign in to comment.