diff --git a/index.js b/index.js index 4bbe10a..f7dcf75 100755 --- a/index.js +++ b/index.js @@ -61,8 +61,8 @@ async function main() { message: 'What is your project name?', default: 'my-uomi-agent', validate: input => { - if (/^[a-zA-Z0-9-_]+$/.test(input)) return true; - return 'Project name may only include letters, numbers, underscores and hashes'; + if (/^[a-zA-Z0-9_-]+$/.test(input)) return true; + return 'Project name may only include letters, numbers, underscores and dashes'; } }, { @@ -185,4 +185,4 @@ if (command === 'create') { process.on('unhandledRejection', (error) => { console.error(chalk.red('Unhandled rejection:'), error); process.exit(1); -}); \ No newline at end of file +});