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

Commit 59e8e91

Browse files
author
Nitesh Kumar
committed
Netwrk path also need to be converted to windows style
1 parent 0c87777 commit 59e8e91

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ define(function (require, exports, module) {
4949
var extensionToExtApplicationMap = {};
5050

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

0 commit comments

Comments
 (0)