Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
},
{
Expand Down Expand Up @@ -185,4 +185,4 @@ if (command === 'create') {
process.on('unhandledRejection', (error) => {
console.error(chalk.red('Unhandled rejection:'), error);
process.exit(1);
});
});