Skip to content

Commit

Permalink
Simplify EOL norm regex in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Mar 11, 2015
1 parent 41dd01c commit 0f8b21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/util.js
Expand Up @@ -54,7 +54,7 @@

function normEOL(str) {
if (!str) return str;
return str.replace(/\r\n|\r|\n/g, "\n");
return str.replace(/\r\n|\r/g, "\n");
}

function render(str, ctx, opts, cb) {
Expand Down

0 comments on commit 0f8b21b

Please sign in to comment.