|
|
|
@ -205,6 +205,7 @@ class GitHubDriver extends VcsDriver
|
|
|
|
|
if (empty($response['content']) || $response['encoding'] !== 'base64' || !($funding = base64_decode($response['content']))) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (empty($funding)) {
|
|
|
|
|
return $this->fundingInfo = false;
|
|
|
|
@ -221,13 +222,13 @@ class GitHubDriver extends VcsDriver
|
|
|
|
|
$result[] = array('type' => $match[1], 'url' => trim($item, '"\' '));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$result[] = array('type' => $match[1], 'url' => $match[2]);
|
|
|
|
|
$result[] = array('type' => $match[1], 'url' => trim($match[2], '"\' '));
|
|
|
|
|
}
|
|
|
|
|
$key = null;
|
|
|
|
|
} elseif (preg_match('{^(\w+)\s*:$}', $line, $match)) {
|
|
|
|
|
$key = $match[1];
|
|
|
|
|
} elseif ($key && preg_match('{^-\s*(.+)$}', $line, $match)) {
|
|
|
|
|
$result[] = array('type' => $key, 'url' => $match[1]);
|
|
|
|
|
$result[] = array('type' => $key, 'url' => trim($match[1], '"\' '));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|