mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Split lines on Windows line endings too
This commit is contained in:
parent
e4223c9b5e
commit
049dcc2780
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue