From cbe30816858dc072a65003714213cd5bde68ec49 Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Thu, 2 Sep 2021 12:55:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Handle=20empty=20bodies=20when?= =?UTF-8?q?=20fetching=20MSCs=20(#3374)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexandre Franke --- scripts/proposals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/proposals.js b/scripts/proposals.js index af78ac91..89b75179 100644 --- a/scripts/proposals.js +++ b/scripts/proposals.js @@ -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; }