Created by: johann-sonntagbauer
Could be a potential fix for #1649 (closed)
The main idea is to validate the project name to meet the npm specification. If the validation fails detailed error information is provided to resolve the issue.
$ node ./create-react-app/packages/create-react-app/index.js " asdf:asdf asdfasdf asdföjk asdlöfj alösdfjk aölsdfkjalö sdfjkalösdkfj öalsdkfjalös dfdklö jasdlöfj asödlfjasl
ö dfkjaslödfkj asdlöfjkaslöd fkjasdlöfjaslö dfjasöldfjasöldfjk aösdlfj aölsdfjasdf asdf SAD asdfasdfasdf asdfasdfa sdfasdäfk äasdfjklö asdfjlö aksdjfölasjd fölaksdfjölasj dfö
laksdfj DSD~"
The project name asdf:asdf asdfasdf asdföjk asdlöfj alösdfjk aölsdfkjalö sdfjkalösdkfj öalsdkfjalös dfdklö jasdlöfj asödlfjaslö dfkjaslödfkj asdlöfjkaslöd fkjasdlöfjaslö dfjasöldfjasöldfjk aösdlfj aölsdfjasdf asdf SAD asdfasdfasdf asdfasdfa sdfasdäfk äasdfjklö asdfjlö aksdjfölasjd fölaksdfjölasj dfölaksdfj DSD~ is not valid:
name cannot contain leading or trailing spaces
name can only contain URL-friendly characters
name can no longer contain more than 214 characters
name can no longer contain capital letters
name can no longer contain special characters ("~'!()*")