Collapse all whitespace runs (including newlines) to a single space.
(s: string)
| 1289 | */ |
| 1290 | /** Collapse all whitespace runs (including newlines) to a single space. */ |
| 1291 | function normalizeWs(s: string): string { |
| 1292 | return s.replace(/\s+/g, " "); |
| 1293 | } |
| 1294 | |
| 1295 | function collapseRenderedWhitespace(value: string): string { |
| 1296 | return value.replace(/[\t\n\f\r ]+/g, " "); |
no outgoing calls
no test coverage detected