Fix code coverage

This commit is contained in:
Sindre Sorhus 2021-11-26 16:50:15 +07:00
parent 04fdbd6d8d
commit 7a6893551d
4 changed files with 24 additions and 8 deletions

View file

@ -1,3 +1,4 @@
// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.
export function stringReplaceAll(string, substring, replacer) {
let index = string.indexOf(substring);
if (index === -1) {