(callback)
| 349 | codePointCount++; |
| 350 | } |
| 351 | index += codePoint.length; |
| 352 | } |
| 353 | |
| 354 | return html.substring(0, trimmedEnd) + ellipsis; |
| 355 | } |
| 356 | |
| 357 | function messageLength (html) { |
| 358 | let codePointCount = 0; |
| 359 | let inTag = false; |
| 360 | for (const codePoint of html) { |
| 361 | if (codePoint === '<' || codePoint === '>') { |
no outgoing calls
no test coverage detected