Skip to content

Commit

Permalink
Fix issue with Windows line endings
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
alexwarren committed Nov 2, 2014
1 parent d0c6dbd commit 9df92f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "squiffy",
"version": "2.2.0",
"version": "2.2.1",
"description": "A tool for creating multiple-choice interactive stories",
"dependencies": {
"finalhandler": "^0.3.1",
Expand Down
4 changes: 2 additions & 2 deletions squiffy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};

var squiffyVersion = "2.2";
var squiffyVersion = "2.2.1";

function Compiler() {
this.process = function(inputFilename, sourcePath, options) {
Expand Down Expand Up @@ -158,7 +158,7 @@ function Compiler() {
console.log("Loading " + inputFilename);

var inputFile = fs.readFileSync(inputFilename);
var inputLines = inputFile.toString().split("\n");
var inputLines = inputFile.toString().replace(/\r/g, "").split("\n");

var compiler = this;
var lineCount = 0;
Expand Down

0 comments on commit 9df92f3

Please # to comment.