diff --git a/scripts/gh_scripts/new_pr_labeler.mjs b/scripts/gh_scripts/new_pr_labeler.mjs index a52c5097eb4..7cf94f4e0ef 100644 --- a/scripts/gh_scripts/new_pr_labeler.mjs +++ b/scripts/gh_scripts/new_pr_labeler.mjs @@ -125,5 +125,5 @@ function parseArgs() { function findLinkedIssue(body) { let lowerBody = body.toLowerCase() const matches = lowerBody.match(/closes #(\d+)/) - return matches.length ? Number(matches[1]) : '' + return matches?.length ? Number(matches[1]) : '' }