* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1451 | * String replacement with RegExp or string. |
| 1452 | */ |
| 1453 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1454 | if (typeof searchValue === 'string') { |
| 1455 | return this._replaceString(searchValue, replacement) |
| 1456 | } |
| 1457 | |
| 1458 | return this._replaceRegexp(searchValue, replacement) |
| 1459 | } |
| 1460 | |
| 1461 | /** @internal */ |
| 1462 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected