* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1269 | * String replacement with RegExp or string. |
| 1270 | */ |
| 1271 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1272 | if (typeof searchValue === 'string') { |
| 1273 | return this._replaceString(searchValue, replacement) |
| 1274 | } |
| 1275 | |
| 1276 | return this._replaceRegexp(searchValue, replacement) |
| 1277 | } |
| 1278 | |
| 1279 | /** @internal */ |
| 1280 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected