Skip to content

Commit

Permalink
fix(helper): Patched replaceWinPath from choking on null values
Browse files Browse the repository at this point in the history
  • Loading branch information
twolfson committed Mar 18, 2016
1 parent b2cb31a commit caa4d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caa4d21

Please sign in to comment.