diff --git a/lib/less/tree/import.js b/lib/less/tree/import.js index 9fb76fde..02594a79 100644 --- a/lib/less/tree/import.js +++ b/lib/less/tree/import.js @@ -22,7 +22,7 @@ tree.Import = function (path, imports, features, once, index, rootpath) { // The '.less' extension is optional if (path instanceof tree.Quoted) { - this.path = /(\.[a-z]*$)|([\?;].*)?$/.test(path.value) ? path.value : path.value + '.less'; + this.path = /(\.[a-z]*$)|([\?;].*)$/.test(path.value) ? path.value : path.value + '.less'; } else { this.path = path.value.value || path.value; }