Skip to content

Commit

Permalink
fix: some fe ui
Browse files Browse the repository at this point in the history
  • Loading branch information
darraghoriordan committed Feb 25, 2023
1 parent 38d58be commit 8710239
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions project-setup/setup-helpers.mts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ const searchFilesForTextAndReplace = async (
const fileContents = fs.readFileSync(file, "utf8");

if (fileContents.includes(searchText)) {
const newFileContents = fileContents.replace(
searchText,
replaceText
);
const regex = new RegExp(searchText, "g");
const newFileContents = fileContents.replace(regex, replaceText);
fs.writeFileSync(file, newFileContents);
}
});
Expand Down

0 comments on commit 8710239

Please sign in to comment.