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 19, 2020
1 parent 3120f48 commit ee9ede2
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 @@ -49,8 +49,8 @@ define(function (require, exports, module) {
var extensionToExtApplicationMap = {};

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

0 comments on commit ee9ede2

Please sign in to comment.