* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1290 | * String replacement with RegExp or string. |
| 1291 | */ |
| 1292 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1293 | if (typeof searchValue === 'string') { |
| 1294 | return this._replaceString(searchValue, replacement) |
| 1295 | } |
| 1296 | |
| 1297 | return this._replaceRegexp(searchValue, replacement) |
| 1298 | } |
| 1299 | |
| 1300 | /** @internal */ |
| 1301 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected