Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 35917cb

Browse files
author
Nitesh Kumar
committed
Addressed review comments
1 parent 90cf9b0 commit 35917cb

File tree

1 file changed

+2
-2
lines changed
  • src/extensions/default/OpenWithExternalApplication

1 file changed

+2
-2
lines changed

src/extensions/default/OpenWithExternalApplication/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ define(function (require, exports, module) {
3232
ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
3333
NodeDomain = brackets.getModule("utils/NodeDomain"),
3434
FileUtils = brackets.getModule("file/FileUtils"),
35+
FileSystem = brackets.getModule("filesystem/FileSystem"),
3536
GraphicsFile = require("GraphicsFile");
3637

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

5152
function convertUnixPathToWindowsPath(path) {
52-
if (brackets.platform === "win"
53-
&& path && ((path[1] === ":" && path[2] === "/") || (path[0] === "/" && path[1] === "/"))) {
53+
if (brackets.platform === "win" && path && FileSystem.isAbsolutePath(path)) {
5454
path = path.replace(RegExp('/','g'), '\\');
5555
}
5656
return path;

0 commit comments

Comments
 (0)