Skip to content

Commit 93a0c24

Browse files
authored
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'
1 parent 9d0501f commit 93a0c24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ _This release is scheduled to be released on 2025-01-01._
6464
- [calendar] Fix showEnd for Full Day events (#3602)
6565
- [tests] Suppress "module is not defined" in e2e tests (#3647)
6666
- [calendar] Fix #3267 (styles array, really this time!)
67+
- [core] Fix #3662 js/positions.js created incorrectly
6768

6869
## [2.29.0] - 2024-10-01
6970

js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
// if not already discovered
5353
if (modulePositions.length === 0) {
5454
// get the lines of the index.html
55-
const lines = fs.readFileSync(indexFileName).toString().split(os.EOL);
55+
const lines = fs.readFileSync(indexFileName).toString().split("\n");
5656
// loop thru the lines
5757
lines.forEach((line) => {
5858
// run the regex on each line

0 commit comments

Comments
 (0)