From e85372ee34c7793b96306502d084b3f473b73e9f Mon Sep 17 00:00:00 2001 From: "kostya.misura" Date: Sun, 3 Aug 2014 07:33:44 +0300 Subject: [PATCH] fixed tests to run on Windows --- features/step_definitions/legacy/cucumber_steps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/legacy/cucumber_steps.js b/features/step_definitions/legacy/cucumber_steps.js index f57999d7c..ec0a9bffe 100644 --- a/features/step_definitions/legacy/cucumber_steps.js +++ b/features/step_definitions/legacy/cucumber_steps.js @@ -229,7 +229,7 @@ var stepDefinitions = function() { }; function _normalizeString(string) { - return string.replace(/\s+$/, '').replace(/\n\n/g, "\n"); + return string.replace(/\s+$/, '').replace(/\r\n/g, "\n").replace(/\n\n/g, "\n"); }; function printInsideFeatureError(error) {