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

Commit ee9ede2

Browse files
author
Nitesh Kumar
committed
Addressed review comments
1 parent 3120f48 commit ee9ede2

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
@@ -49,8 +49,8 @@ define(function (require, exports, module) {
4949
var extensionToExtApplicationMap = {};
5050

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

0 commit comments

Comments
 (0)