* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1542 | * String replacement with RegExp or string. |
| 1543 | */ |
| 1544 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1545 | if (typeof searchValue === 'string') { |
| 1546 | return this._replaceString(searchValue, replacement) |
| 1547 | } |
| 1548 | |
| 1549 | return this._replaceRegexp(searchValue, replacement) |
| 1550 | } |
| 1551 | |
| 1552 | /** @internal */ |
| 1553 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected