mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't require npm URLs to have a #commit-ish
Npm says it will default to `master`. That's OK by us.
This commit is contained in:
@@ -486,7 +486,7 @@ exports.isUrlWithSha = function (x) {
|
||||
exports.isNpmUrl = function (x) {
|
||||
// These are the various protocols that NPM supports, which we use to download NPM dependencies
|
||||
// See https://docs.npmjs.com/files/package.json#git-urls-as-dependencies
|
||||
return exports.isUrlWithSha(x) || /^(git|git\+ssh|git\+http|git\+https)?:\/\/.*#/.test(x);
|
||||
return exports.isUrlWithSha(x) || /^(git|git\+ssh|git\+http|git\+https)?:\/\//.test(x);
|
||||
};
|
||||
|
||||
exports.isPathRelative = function (x) {
|
||||
|
||||
Reference in New Issue
Block a user