* Replaces Unicode whitespace characters with U+20 space character. * @param {string} string Haystack * @param {Boolean} [reduceToSingle=false] Wether to replace * multiple successive space characters with a single one * @return {string}
(string, reduceToSingle = false)
| 71 | * @return {string} |
| 72 | */ |
| 73 | static normalizeWhitespaces (string, reduceToSingle = false) { |
| 74 | return this.replaceWhitespaces(string, ' ', reduceToSingle) |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Replaces Unicode whitespace characters with given character. |
no test coverage detected