* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1406 | * String replacement with RegExp or string. |
| 1407 | */ |
| 1408 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1409 | if (typeof searchValue === 'string') { |
| 1410 | return this._replaceString(searchValue, replacement) |
| 1411 | } |
| 1412 | |
| 1413 | return this._replaceRegexp(searchValue, replacement) |
| 1414 | } |
| 1415 | |
| 1416 | /** @internal */ |
| 1417 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected