From 11dcd74f64fafe96015e44cea4d881871db22a1d Mon Sep 17 00:00:00 2001 From: bteng22 Date: Tue, 29 Mar 2016 20:12:40 -0700 Subject: [PATCH] adding newline before appending tail to combinedCode to prevent tail from being cut off by trailing comments in code editor setting initialValue of reduce to newline for arrayToNewLineString to prevent cutting off code if trailing comments in json --- client/commonFramework/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/commonFramework/init.js b/client/commonFramework/init.js index ff4130efd1..e054bab6c1 100644 --- a/client/commonFramework/init.js +++ b/client/commonFramework/init.js @@ -28,7 +28,7 @@ window.common = (function(global) { seedData = Array.isArray(seedData) ? seedData : [seedData]; return seedData.reduce(function(seed, line) { return '' + seed + line + '\n'; - }, ''); + }, '\n'); }; common.seed = common.arrayToNewLineString(common.challengeSeed);