* String replacement with RegExp or string.
(searchValue: string | RegExp, replacement: string | ReplacementFunction)
| 1189 | * String replacement with RegExp or string. |
| 1190 | */ |
| 1191 | replace(searchValue: string | RegExp, replacement: string | ReplacementFunction): this { |
| 1192 | if (typeof searchValue === 'string') { |
| 1193 | return this._replaceString(searchValue, replacement) |
| 1194 | } |
| 1195 | |
| 1196 | return this._replaceRegexp(searchValue, replacement) |
| 1197 | } |
| 1198 | |
| 1199 | /** @internal */ |
| 1200 | _replaceAllString(string: string, replacement: string | ReplacementFunction): this { |
no test coverage detected