mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user