This commit is contained in:
Daniel Odendahl Jr
2018-04-11 22:37:34 +00:00
parent b9dc0e3f52
commit 5a83e922ad
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class IllegalCommand extends Command {
prompt: 'What should the text of the bill be?',
type: 'string',
validate: text => {
if (/^[a-zA-Z0-9 ]+$/g.test(text) && text.length > 11) return true;
if (/^[a-zA-Z0-9 ]+$/g.test(text) && text.length < 11) return true;
return 'Invalid text, please enter 10 or fewer basic unicode characters (A-Z, 0-9).';
},
parse: text => text.toUpperCase()