Skip to content

Commit

Permalink
Fix missing replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
sylveon committed Feb 27, 2022
1 parent 1a12e02 commit fe31f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function replaceInFile(file, original, replacement, callback) {
fs.readFile(file, "UTF-8", (err, data) => {
assertSuccess(err);

fs.writeFile(file, data.replace(original, replacement), "UTF-8", err => {
fs.writeFile(file, data.replaceAll(original, replacement), "UTF-8", err => {
assertSuccess(err);

if (callback) {
Expand Down

0 comments on commit fe31f30

Please sign in to comment.