Skip to content

Commit 57b41f0

Browse files
committed
make import use shared relative path function
1 parent 290d7a0 commit 57b41f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/less/tree/import.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ tree.Import.prototype = {
6868
if (this.rootpath && !(path instanceof tree.URL)) {
6969
var pathValue = path.value;
7070
// Add the base path if the import is relative
71-
if (pathValue && !/^(?:[a-z\-]+:|\/)/.test(pathValue)) {
71+
if (pathValue && env.isPathRelative(pathValue)) {
7272
path.value = this.rootpath + pathValue;
7373
}
7474
}

0 commit comments

Comments
 (0)