From caa4d21abb1a59ffc7d06b663b5165eceda0360e Mon Sep 17 00:00:00 2001 From: Todd Wolfson Date: Fri, 18 Mar 2016 18:21:39 -0500 Subject: [PATCH] fix(helper): Patched replaceWinPath from choking on `null` values --- lib/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.js b/lib/helper.js index e93acb181..4bc7ee46c 100644 --- a/lib/helper.js +++ b/lib/helper.js @@ -131,7 +131,7 @@ exports.formatTimeInterval = function (time) { } var replaceWinPath = function (path) { - return exports.isDefined(path) ? path.replace(/\\/g, '/') : path + return _.isString(path) ? path.replace(/\\/g, '/') : path } exports.normalizeWinPath = process.platform === 'win32' ? replaceWinPath : _.identity