From 93a0c24c22ddbefb91afa48d129dee41e7597e28 Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Sat, 28 Dec 2024 11:57:39 -0600 Subject: [PATCH] fix #3662 line parse on windows with linux line ends (#3663) line parse used os.EOL, which failed with linux line ends in index.html, change to '\n' --- CHANGELOG.md | 1 + js/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efc01194..5375ff65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ _This release is scheduled to be released on 2025-01-01._ - [calendar] Fix showEnd for Full Day events (#3602) - [tests] Suppress "module is not defined" in e2e tests (#3647) - [calendar] Fix #3267 (styles array, really this time!) +- [core] Fix #3662 js/positions.js created incorrectly ## [2.29.0] - 2024-10-01 diff --git a/js/utils.js b/js/utils.js index d4b90223..da953fec 100644 --- a/js/utils.js +++ b/js/utils.js @@ -52,7 +52,7 @@ module.exports = { // if not already discovered if (modulePositions.length === 0) { // get the lines of the index.html - const lines = fs.readFileSync(indexFileName).toString().split(os.EOL); + const lines = fs.readFileSync(indexFileName).toString().split("\n"); // loop thru the lines lines.forEach((line) => { // run the regex on each line