lib/less/js/lib/less/tree/quoted.js in less-2.0.8 vs lib/less/js/lib/less/tree/quoted.js in less-2.0.9
- old
+ new
@@ -18,10 +18,10 @@
var that = this;
var value = this.value.replace(/`([^`]+)`/g, function (_, exp) {
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 v.value || v.toCSS();
+ return ('value' in v) ? v.value : v.toCSS();
});
return new(tree.Quoted)(this.quote + value + this.quote, value, this.escaped, this.index);
}
};