Skip to content

Commit

Permalink
fix: replace all
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed May 9, 2024
1 parent a1dbe48 commit a671408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/FileProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function replaceVariables(
): string {
let newContent: string = content.toString();
variables.forEach((value, key) => {
newContent = newContent.replace(
newContent = newContent.replaceAll(
new RegExp(`\\{\\s*_\\s*${key.trim()}\\s*_\\s*\\}`, "g"),
value
);
Expand Down

0 comments on commit a671408

Please sign in to comment.