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