(str: string)
| 75 | // Trims all whitespace except NBSP (\xa0) from both ends of a string. |
| 76 | // (dom.js line 999: bot.dom.trimExcludingNonBreakingSpaceCharacters_) |
| 77 | function trimExcludingNbsp(str: string): string { |
| 78 | return str.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g, '') |
| 79 | } |
| 80 | |
| 81 | // goog.string.isEmptyOrWhitespace treats \xa0 as whitespace for this check. |
| 82 | // (referenced at dom.js lines 1079, 1115) |
no outgoing calls
no test coverage detected