Skip to content
Snippets Groups Projects

Add null pointer catch to regex match for GitHub url

Merged Martin Lowe requested to merge github/fork/autumnfound/malowe/master/14-7 into master
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -153,6 +153,9 @@ async function runSync(data) {
for (idx in repos) {
var repoUrl = repos[idx];
var match = /\/([^\/]*)\/([^\/]*)$/.exec(repoUrl);
if (match == undefined) {
continue;
}
// get the org + repo from the repo URL
var org = match[1];
Loading