1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 09:53:00 +01:00

Fixed UriToPath Utill Function (#14706)

* Fixed UriToPath Utill Function

* fixed for new file and network file
This commit is contained in:
Nitesh Kumar 2019-04-22 14:13:28 +05:30 committed by Shubham Yadav
parent 469f4e1c36
commit 9f50db1f7f

View File

@ -36,7 +36,7 @@ define(function (require, exports, module) {
let filePath = decodeURIComponent(url.pathname);
if (brackets.platform === 'win') {
if (filePath[0] === '/') {
if (filePath && filePath.includes(":/") && filePath[0] === '/') {
filePath = filePath.substr(1);
}
return filePath;