fix #34
This commit is contained in:
parent
8c885a011e
commit
6d28813654
@ -538,7 +538,7 @@ function findNewVersion(data, opts) {
|
||||
|
||||
async function checkUrlDep([key, dep], {useGreatest} = {}) {
|
||||
const stripped = dep.old.replace(stripRe, "");
|
||||
const [_, user, repo, oldRef] = partsRe.exec(stripped);
|
||||
const [_, user, repo, oldRef] = partsRe.exec(stripped) || [];
|
||||
if (!user || !repo || !oldRef) return;
|
||||
|
||||
if (hashRe.test(oldRef)) {
|
||||
|
Loading…
Reference in New Issue
Block a user