Skip to content

Commit

Permalink
Fix for issue #481: correctly parse DOS file endings in literals to a…
Browse files Browse the repository at this point in the history
…llow DOS files to be loaded in raw includes.
  • Loading branch information
phipla authored and tj committed Mar 10, 2012
1 parent f6b8422 commit 3843976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nodes/literal.js
Expand Up @@ -20,7 +20,7 @@ var Node = require('./node');

var Literal = module.exports = function Literal(str) {
this.str = str
.replace(/\n/g, "\\n")
.replace(/\n|\r\n/g, "\\n")
.replace(/'/g, "\\'");
};

Expand Down

0 comments on commit 3843976

Please sign in to comment.