mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
interpolation includes unit, but not quote. Use unit function to get old functionality. Fixes #782
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user