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