diff --git a/tools/utils/utils.js b/tools/utils/utils.js index b620a69dc5..c8ac7fb5e9 100644 --- a/tools/utils/utils.js +++ b/tools/utils/utils.js @@ -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) {