Allow escaped charcaters in less filename url. Fixes #982

This commit is contained in:
Luke Page
2012-12-09 16:11:08 +00:00
parent 2d73502955
commit 2602833d38

View File

@@ -163,7 +163,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
contents[href] = data; // Updating top importing parser content cache
new(less.Parser)({
optimization: less.optimization,
paths: [href.replace(/[\w\.-]+$/, '')],
paths: [href.replace(/[\w\.%-]+$/, '')],
mime: sheet.type,
filename: href,
'contents': contents, // Passing top importing parser content cache ref down.