Skip to content

Commit d397d94

Browse files
committed
fix(new): improve error message when project name does not match regex
1 parent 338e69b commit d397d94

File tree

1 file changed

+1
-0
lines changed
  • packages/angular-cli/commands

1 file changed

+1
-0
lines changed

packages/angular-cli/commands/new.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const NewCommand = Command.extend({
4242
return Promise.reject(new SilentError(oneLine`
4343
Project name "${packageName}" is not valid. New project names must
4444
start with a letter, and must contain only alphanumeric characters or dashes.
45+
When adding a dash the segment after the dash must start with a letter too.
4546
`));
4647
}
4748

0 commit comments

Comments
 (0)