🐛 Handle empty bodies when fetching MSCs (#3374)

Signed-off-by: Alexandre Franke <alexandre.franke@gmail.com>
pull/3378/head
Alexandre Franke 3 years ago committed by GitHub
parent ed08c1cb9e
commit cbe3081685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,7 @@ function getProposalFromIssue(issue) {
*/
function getDirective(directiveName, issue) {
const re = new RegExp(`^${directiveName}: (.+?)$`, "m");
const found = issue.body.match(re);
const found = issue.body?.match(re);
return found? found[1]: null;
}

Loading…
Cancel
Save