mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
Split lines on Windows line endings too
This commit is contained in:
@@ -102,7 +102,7 @@ readFileIntoTextArray = (path, callback)->
|
||||
if error?
|
||||
logger.err path:path, "error reading file into text array"
|
||||
return callback(err)
|
||||
lines = content.split("\n")
|
||||
lines = content.split(/\r\n|\n|\r/)
|
||||
callback error, lines
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user