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
This commit is contained in:
bteng22
2016-03-29 20:12:40 -07:00
parent 56bb315cc7
commit 11dcd74f64

View File

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