diff --git a/project-setup/setup-helpers.mts b/project-setup/setup-helpers.mts index 57b2d6e6..84d5ad14 100644 --- a/project-setup/setup-helpers.mts +++ b/project-setup/setup-helpers.mts @@ -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); } });