mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
🐛 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
|
|
@ -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…
Reference in a new issue