mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 04:05:25 -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"
|
||||
callback null, dumpPath
|
||||
|
||||
stream.resume()
|
||||
|
||||
|
||||
readFileIntoTextArray = (path, callback)->
|
||||
fs.readFile path, "utf8", (error, content = "") ->
|
||||
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