From 5bfa35ce7900281fdd2fce67b9399943ce4104ef Mon Sep 17 00:00:00 2001 From: Alex Van Camp Date: Thu, 12 Jul 2018 08:01:06 -0500 Subject: [PATCH] fix(panel): force name to have length --- generators/panel/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generators/panel/index.js b/generators/panel/index.js index 4f7f388..15b1393 100644 --- a/generators/panel/index.js +++ b/generators/panel/index.js @@ -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 => {