()
| 262 | let currentLen = 0; |
| 263 | |
| 264 | const flushSection = () => { |
| 265 | if (currentLines.length === 0) { |
| 266 | return; |
| 267 | } |
| 268 | const content = currentLines.join('\n'); |
| 269 | blocks.push({ |
| 270 | type: 'section', |
| 271 | text: {type: 'mrkdwn', text: content}, |
| 272 | }); |
| 273 | currentLines = []; |
| 274 | currentLen = 0; |
| 275 | }; |
| 276 | |
| 277 | for (const line of rowLines) { |
| 278 | const addLen = line.length + 1; // plus newline |
no test coverage detected