* Strips all newlines out of a given string * * @param input a string to be cleared of new line characters * @returns
(input: string)
| 473 | * @returns |
| 474 | */ |
| 475 | function stripNewlines(input: string): string { |
| 476 | return input.replace(/\s+/gm, ''); |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Reduces a string down to a maximum length of characters with ellipsis for readability |