* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1231 | * String replacement with RegExp or string. |
| 1232 | */ |
| 1233 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1234 | if (typeof searchValue === 'string') { |
| 1235 | return this._replaceString(searchValue, replacement) |
| 1236 | } |
| 1237 | |
| 1238 | return this._replaceRegexp(searchValue, replacement) |
| 1239 | } |
| 1240 | |
| 1241 | /** @internal */ |
| 1242 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected