🐛 Handle empty bodies when fetching MSCs (#3374)

Signed-off-by: Alexandre Franke <alexandre.franke@gmail.com>
This commit is contained in:
Alexandre Franke 2021-09-02 12:55:30 +02:00 committed by GitHub
parent ed08c1cb9e
commit cbe3081685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}