remove carriage teturns from script when parsing markdown

newlines on windows are weird... it wouldnt even let me start the game unless i did this
This commit is contained in:
spaciecat 2019-09-12 13:34:40 +10:00
parent 0f00042824
commit c8ee042ef7
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ Game.init = function(){
Game.parseSceneMarkdown = function(md){
// Split into sections...
md = md.trim();
md = md.trim().replace(/\r/g, "");
md = "\n" + md;
var sections = md.split(/\n\#\s*/);
sections.shift();