From ef827bd0d5ef7add917c1f9c9a86f01c4c9dbea8 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Thu, 2 Jan 2025 08:49:29 +0100 Subject: [PATCH] Fix tempate generation for windows (#699) * Fix tempate generation for windows * fix --- src/generateFromTemplate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generateFromTemplate.js b/src/generateFromTemplate.js index 17ebfd10b..89078e652 100644 --- a/src/generateFromTemplate.js +++ b/src/generateFromTemplate.js @@ -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`);