(searchValue, replacement)
| 876 | } |
| 877 | |
| 878 | replace(searchValue, replacement) { |
| 879 | if (typeof searchValue === 'string') { |
| 880 | return this._replaceString(searchValue, replacement); |
| 881 | } |
| 882 | |
| 883 | return this._replaceRegexp(searchValue, replacement); |
| 884 | } |
| 885 | |
| 886 | _replaceAllString(string, replacement) { |
| 887 | const { original } = this; |
no test coverage detected