mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix urls test (windows specific)
This commit is contained in:
@@ -501,16 +501,16 @@ public class VfsUtil extends VfsUtilCore {
|
||||
}
|
||||
else if (SystemInfoRt.isWindows && url.regionMatches(0, LocalFileSystem.PROTOCOL_PREFIX, 0, LocalFileSystem.PROTOCOL_PREFIX.length())) {
|
||||
// file:///C:/test/file.js -> file://C:/test/file.js
|
||||
for (int i = index + 3; i < url.length(); i++) {
|
||||
for (int i = index + 4; i < url.length(); i++) {
|
||||
char c = url.charAt(i);
|
||||
if (c == '/') {
|
||||
return url;
|
||||
}
|
||||
else if (c == ':') {
|
||||
break;
|
||||
}
|
||||
else if (c == ':') {
|
||||
return LocalFileSystem.PROTOCOL_PREFIX + url.substring(index + 4);
|
||||
}
|
||||
}
|
||||
return LocalFileSystem.PROTOCOL_PREFIX + url.substring(index + 3);
|
||||
return url;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user