(str: string)
| 81 | // goog.string.isEmptyOrWhitespace treats \xa0 as whitespace for this check. |
| 82 | // (referenced at dom.js lines 1079, 1115) |
| 83 | function isEmptyOrWhitespace(str: string): boolean { |
| 84 | return /^[\s\xa0]*$/.test(str) |
| 85 | } |
| 86 | |
| 87 | // Joins the accumulated lines with '\n', trims each line and the overall |
| 88 | // result (excluding NBSP), then converts all remaining NBSP to regular spaces. |
no test coverage detected