interpolation includes unit, but not quote. Use unit function to get old functionality. Fixes #782

This commit is contained in:
Luke Page
2012-11-28 05:42:54 +00:00
parent 8fa2137aa3
commit 37c3b099c3
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ tree.Quoted.prototype = {
return new(tree.JavaScript)(exp, that.index, true).eval(env).value;
}).replace(/@\{([\w-]+)\}/g, function (_, name) {
var v = new(tree.Variable)('@' + name, that.index).eval(env);
return ('value' in v) ? v.value : v.toCSS();
return (v instanceof tree.Quoted) ? v.value : v.toCSS();
});
return new(tree.Quoted)(this.quote + value + this.quote, value, this.escaped, this.index);
},

View File

@@ -30,7 +30,7 @@
url2: "http://lesscss.org/image-256.jpg";
url3: "http://lesscss.org#445566";
url4: "http://lesscss.org/hello";
url5: "http://lesscss.org/54.4";
url5: "http://lesscss.org/54.4px";
}
.mix-mul-class {
color: #0000ff;