Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c1224 commit ea9427bCopy full SHA for ea9427b
packages/create-react-app/createReactApp.js
@@ -441,7 +441,7 @@ function getPackageName(installPackage) {
441
// git+https://github.com/mycompany/react-scripts.git
442
// git+ssh://github.com/mycompany/react-scripts.git#v1.2.3
443
return Promise.resolve(installPackage.match(/([^\/]+)\.git(#.*)?$/)[1]);
444
- } else if (installPackage.indexOf('@') > 0) {
+ } else if (installPackage.match(/.+@/)) {
445
// Do not match @scope/ when stripping off @version or @tag
446
return Promise.resolve(
447
installPackage.charAt(0) + installPackage.substr(1).split('@')[0]
0 commit comments