(s, w)
| 920 | let quoteWithAuthor = []; |
| 921 | // Wrap text |
| 922 | let wrapText = (s, w) => s.replace( |
| 923 | new RegExp(`(?![^\\n]{1,${w}}$)([^\\n]{1,${w}})\\s`, 'g'), ' $1| ' |
| 924 | ); |
| 925 | quoteWithAuthor = wrapText(response.content,QUOTE_WRAP_LENGTH).split('|'); |
| 926 | quoteWithAuthor.push({rsize: DETAIL_RSIZE, title: "[" + response.author + "]"}); |
| 927 | return { |
no outgoing calls
no test coverage detected