Skip to content

Commit

Permalink
Merge pull request InfiniteAmmoInc#79 from julsam/fix-yarntxt-ln
Browse files Browse the repository at this point in the history
Fix for issue InfiniteAmmoInc#78 loading yarn.txt with \r\n lines
  • Loading branch information
desplesda authored Jan 21, 2019
2 parents 1104916 + 3031c74 commit c50b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/classes/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var data = {
}
for (i = 0; i < content.length; i++) objects.push(content[i]);
} else if (type == FILETYPE.YARNTEXT) {
var lines = content.split("\n");
var lines = content.split(/\r?\n/);
var obj = null;
var index = 0;
var readingBody = false;
Expand Down

0 comments on commit c50b77c

Please sign in to comment.