This commit is contained in:
Daniel Odendahl Jr
2018-03-23 22:35:21 +00:00
parent 9b8cc68b97
commit 0702a2d459
15 changed files with 48 additions and 96 deletions
+1 -4
View File
@@ -32,10 +32,7 @@ module.exports = class IllegalCommand extends Command {
prompt: 'Should the text use is, are, or am?',
type: 'string',
default: 'IS',
validate: verb => {
if (['is', 'are', 'am'].includes(verb.toLowerCase())) return true;
return 'Invalid verb, please enter either is, are, or am.';
},
oneOf: ['is', 'are', 'am'],
parse: verb => verb.toUpperCase()
}
]