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'
This commit is contained in:
sam detweiler 2024-12-28 11:57:39 -06:00 committed by GitHub
parent 9d0501f240
commit 93a0c24c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ _This release is scheduled to be released on 2025-01-01._
- [calendar] Fix showEnd for Full Day events (#3602) - [calendar] Fix showEnd for Full Day events (#3602)
- [tests] Suppress "module is not defined" in e2e tests (#3647) - [tests] Suppress "module is not defined" in e2e tests (#3647)
- [calendar] Fix #3267 (styles array, really this time!) - [calendar] Fix #3267 (styles array, really this time!)
- [core] Fix #3662 js/positions.js created incorrectly
## [2.29.0] - 2024-10-01 ## [2.29.0] - 2024-10-01

View File

@ -52,7 +52,7 @@ module.exports = {
// if not already discovered // if not already discovered
if (modulePositions.length === 0) { if (modulePositions.length === 0) {
// get the lines of the index.html // 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 // loop thru the lines
lines.forEach((line) => { lines.forEach((line) => {
// run the regex on each line // run the regex on each line