From 9a28248b524324c92432a72db8bc737e7ef13cf8 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 7 Jan 2019 12:54:57 +0100 Subject: [PATCH] :lipstick: --- src/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap.js b/src/bootstrap.js index ab57c6dc83c..af8939f66a1 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -71,7 +71,7 @@ exports.uriFromPath = function (_path) { /** @type {string} */ let uri; - if (pathName.startsWith('//')) { + if (process.platform === 'win32' && pathName.startsWith('//')) { // specially handle Windows UNC paths uri = encodeURI('file:' + pathName); } else { uri = encodeURI('file://' + pathName); -- GitLab