Adding handling for upper case drive letter in Windows

The check fails when the path starts with a Windows letter drive that’s
upper case, causing the path to then include the currentDirectory.
This fails when a rootPath is specified along with an import statements
like:

@import url("brackets_colors.less");
This commit is contained in:
Miguel Castillo
2014-07-11 18:36:03 -04:00
parent 546bedd344
commit b7224670c9

View File

@@ -469,7 +469,7 @@ function doXHR(url, type, callback, errback) {
function loadFile(originalHref, currentFileInfo, callback, env, modifyVars) {
if (currentFileInfo && currentFileInfo.currentDirectory && !/^([a-z-]+:)?\//.test(originalHref)) {
if (currentFileInfo && currentFileInfo.currentDirectory && !/^([A-Za-z-]+:)?\//.test(originalHref)) {
originalHref = currentFileInfo.currentDirectory + originalHref;
}