mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
line parse used os.EOL, which failed with linux line ends in index.html, change to '\n'
This commit is contained in:
parent
9d0501f240
commit
93a0c24c22
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user