🐛 Handle empty bodies when fetching MSCs (#3374)
Signed-off-by: Alexandre Franke <alexandre.franke@gmail.com>
This commit is contained in:
parent
ed08c1cb9e
commit
cbe3081685
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ function getProposalFromIssue(issue) {
|
||||||
*/
|
*/
|
||||||
function getDirective(directiveName, issue) {
|
function getDirective(directiveName, issue) {
|
||||||
const re = new RegExp(`^${directiveName}: (.+?)$`, "m");
|
const re = new RegExp(`^${directiveName}: (.+?)$`, "m");
|
||||||
const found = issue.body.match(re);
|
const found = issue.body?.match(re);
|
||||||
return found? found[1]: null;
|
return found? found[1]: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue