8000 fix url() imports · recomputing/less.js@bb5f038 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb5f038

Browse files
committed
fix url() imports
1 parent 90013bc commit bb5f038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/less/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ if (less.mode === 'browser' || less.mode === 'rhino') {
12551255
// Used by `@import` directives
12561256
//
12571257
less.Parser.importer = function (path, paths, callback, env) {
1258-
if (path.charAt(0) !== '/' && paths.length > 0) {
1258+
if (!/^([a-z]+:)?\//.test(path) && paths.length > 0) {
12591259
path = paths[0] + path;
12601260
}
12611261
// We pass `true` as 3rd argument, to force the reload of the import.

0 commit comments

Comments
 (0)
0