提交 e9d6a653 编写于 作者: T Tereza Tomcova 提交者: Benjamin Pasero

bootstrap - handle UNC paths correctly (#66128)

fixes #53857
上级 d813a314
......@@ -69,7 +69,15 @@ exports.uriFromPath = function (_path) {
pathName = '/' + pathName;
}
return encodeURI('file://' + pathName).replace(/#/g, '%23');
/** @type {string} */
let uri;
if (pathName.startsWith('//')) {
uri = encodeURI('file:' + pathName);
} else {
uri = encodeURI('file://' + pathName);
}
return uri.replace(/#/g, '%23');
};
//#endregion
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册