Prefer String#replaceAll
over String#replace
#1814
Labels
breaking change
Changes that are not backwards compatible
pending
This cannot be worked on yet
refactor
Changes existing code without changing functionality
Caused by #1812 (comment)
Summary
Update the code base to move to using
String.prototype.replaceAll
instead ofString.prototype.replace
following theeslint-plugin-unicorn
rulestring-prefer-replace-all
and enforce this using ESLint.This is currently pending because
String.prototype.replaceAll
was not yet introduced in Node.js v14.18.0, which is still supported by this package.The text was updated successfully, but these errors were encountered: