Skip to content

Commit

Permalink
fix: enables multiline regex mode (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jul 16, 2021
1 parent a752506 commit e14d13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function prepare(
const replaceInFileConfig = replacement as ReplaceInFileConfig;

replaceInFileConfig.to = template(replacement.to)({ ...context });
replaceInFileConfig.from = new RegExp(replacement.from, "g");
replaceInFileConfig.from = new RegExp(replacement.from, "gm");

let actual = await replaceInFile(replaceInFileConfig);

Expand Down

0 comments on commit e14d13f

Please sign in to comment.