Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored and gaearon committed Mar 5, 2017
1 parent 290174a commit dac3209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ function extractStream(stream, dest) {
function getPackageName(installPackage) {
if (installPackage.indexOf('.tgz') > -1) {
return getTemporaryDirectory().then(function(obj) {
if (installPackage.test(/^http/)) {
if (/^http/.test(installPackage)) {
var stream = hyperquest(installPackage);
} else {
var stream = fs.createReadStream(installPackage);
}
return extractStream(stream).then(function() {
return extractStream(stream, obj.tmpdir).then(function() {
return obj;
});
}).then(function(obj) {
Expand Down

0 comments on commit dac3209

Please sign in to comment.