From 0f8b21b8df7e8e852b2e1889388653b7075f0d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 11 Mar 2015 09:27:52 +0100 Subject: [PATCH] Simplify EOL norm regex in tests --- tests/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util.js b/tests/util.js index 9913987a..39c8dd48 100644 --- a/tests/util.js +++ b/tests/util.js @@ -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) {