mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:35:13 -05:00
Merge branch 'master' of github.com:sharelatex/web-sharelatex
This commit is contained in:
commit
f7ea925e67
1 changed files with 1 additions and 4 deletions
|
@ -94,15 +94,12 @@ module.exports =
|
||||||
logger.log project_id:project_id, file_id:file_id, dumpPath:dumpPath, "tpds update write stream finished"
|
logger.log project_id:project_id, file_id:file_id, dumpPath:dumpPath, "tpds update write stream finished"
|
||||||
callback null, dumpPath
|
callback null, dumpPath
|
||||||
|
|
||||||
stream.resume()
|
|
||||||
|
|
||||||
|
|
||||||
readFileIntoTextArray = (path, callback)->
|
readFileIntoTextArray = (path, callback)->
|
||||||
fs.readFile path, "utf8", (error, content = "") ->
|
fs.readFile path, "utf8", (error, content = "") ->
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue