Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitesh Kumar committed Mar 24, 2020
1 parent 90cf9b0 commit 35917cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/default/OpenWithExternalApplication/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ define(function (require, exports, module) {
ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
NodeDomain = brackets.getModule("utils/NodeDomain"),
FileUtils = brackets.getModule("file/FileUtils"),
FileSystem = brackets.getModule("filesystem/FileSystem"),
GraphicsFile = require("GraphicsFile");

/**
Expand All @@ -49,8 +50,7 @@ define(function (require, exports, module) {
var extensionToExtApplicationMap = {};

function convertUnixPathToWindowsPath(path) {
if (brackets.platform === "win"
&& path && ((path[1] === ":" && path[2] === "/") || (path[0] === "/" && path[1] === "/"))) {
if (brackets.platform === "win" && path && FileSystem.isAbsolutePath(path)) {
path = path.replace(RegExp('/','g'), '\\');
}
return path;
Expand Down

0 comments on commit 35917cb

Please sign in to comment.