Skip to content

Commit

Permalink
Fix tempate generation for windows (#699)
Browse files Browse the repository at this point in the history
* Fix tempate generation for windows

* fix
  • Loading branch information
naltatis authored Jan 2, 2025
1 parent 12450e9 commit ef827bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generateFromTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function generateMarkdown(data, type, translations, target) {
const content = fs
.readFileSync(target, "utf-8")
.replace(
new RegExp(`${escapeRegExp(AUTOGEN_MARKER)}(.|\n)*`, "gm"),
new RegExp(`${escapeRegExp(AUTOGEN_MARKER)}([\\s\\S])*`, "gm"),
`${AUTOGEN_MARKER}\n\n${generated}`,
);
console.log(`${type}: ${brandCounter} brands, ${productCounter} products`);
Expand Down

0 comments on commit ef827bd

Please sign in to comment.