Skip to content

Commit cbe3081

Browse files
authored
🐛 Handle empty bodies when fetching MSCs (#3374)
Signed-off-by: Alexandre Franke <[email protected]>
1 parent ed08c1c commit cbe3081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/proposals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function getProposalFromIssue(issue) {
127127
*/
128128
function getDirective(directiveName, issue) {
129129
const re = new RegExp(`^${directiveName}: (.+?)$`, "m");
130-
const found = issue.body.match(re);
130+
const found = issue.body?.match(re);
131131
return found? found[1]: null;
132132
}
133133

0 commit comments

Comments
 (0)