* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1205 | * String replacement with RegExp or string. |
| 1206 | */ |
| 1207 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1208 | if (typeof searchValue === 'string') { |
| 1209 | return this._replaceString(searchValue, replacement) |
| 1210 | } |
| 1211 | |
| 1212 | return this._replaceRegexp(searchValue, replacement) |
| 1213 | } |
| 1214 | |
| 1215 | /** @internal */ |
| 1216 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected