(line)
| 141 | |
| 142 | function fitToReleaseBody(lines) { |
| 143 | const size = (line) => Buffer.byteLength(line, 'utf8') + 1; |
| 144 | if (lines.reduce((n, line) => n + size(line), 0) <= MAX_BODY_BYTES) return lines; |
| 145 | // Cut only where an entry or a heading starts, outside a code fence, so no |
| 146 | // entry is shown in part. |