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

Commit 6ed7385

Browse files
niteskumNitesh Kumar
authored and
Nitesh Kumar
committed
Merge pull request #15100 from niteskum/windowsPathCorrection
Windows path correction
1 parent 7c2c6db commit 6ed7385

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

src/extensions/default/OpenWithExternalApplication/main.js

+2-1
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,7 +50,7 @@ define(function (require, exports, module) {
4950
var extensionToExtApplicationMap = {};
5051

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

0 commit comments

Comments
 (0)