Split lines on Windows line endings too

This commit is contained in:
James Allen 2014-04-10 12:45:31 +01:00
parent e4223c9b5e
commit 049dcc2780

View file

@ -102,7 +102,7 @@ readFileIntoTextArray = (path, callback)->
if error? if error?
logger.err path:path, "error reading file into text array" logger.err path:path, "error reading file into text array"
return callback(err) return callback(err)
lines = content.split("\n") lines = content.split(/\r\n|\n|\r/)
callback error, lines callback error, lines