Skip to content

Commit b58d697

Browse files
committed
fix(new): improve error message when project name does not match regex
1 parent 979e4f9 commit b58d697

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

Lines changed: 1 addition & 0 deletions
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)