Przeglądaj źródła

Merge branch 'master' of github.com:sharelatex/web-sharelatex

Henry Oswald 12 lat temu
rodzic
commit
f7ea925e67

+ 1 - 4
services/web/app/coffee/Features/ThirdPartyDataStore/UpdateMerger.coffee

@@ -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