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

Commit

Permalink
Merge pull request #15100 from niteskum/windowsPathCorrection
Browse files Browse the repository at this point in the history
Windows path correction
  • Loading branch information
niteskum authored and Nitesh Kumar committed Mar 25, 2020
1 parent 7c2c6db commit 6ed7385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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,7 +50,7 @@ define(function (require, exports, module) {
var extensionToExtApplicationMap = {};

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

0 comments on commit 6ed7385

Please sign in to comment.