Skip to content

Commit

Permalink
fix(windows): Fixed file path replacement on windows
Browse files Browse the repository at this point in the history
Patch replicated by @@DzmitryShylovich
  • Loading branch information
Brandon Roberts committed Sep 14, 2016
1 parent cf5f7e0 commit d17ab66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ module.exports.getFilename = function(resourcePath) {

module.exports.normalizeFilePath = function(filePath) {
if (os.platform() === 'win32') {
return filePath.replace(/\//g, '\\');
var path = filePath.replace(/\//g, '\\');

return path.replace(/\\/g, '\\\\');
}

return filePath;
Expand Down

0 comments on commit d17ab66

Please sign in to comment.