From 9fb894181d1225ebce018aca12e1e00d580d889a Mon Sep 17 00:00:00 2001 From: David Manzanares Date: Tue, 10 Oct 2017 18:10:40 +0200 Subject: [PATCH] Fix replacement --- lib/carto/tree/value.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/carto/tree/value.js b/lib/carto/tree/value.js index 01507f9..23b0d6b 100644 --- a/lib/carto/tree/value.js +++ b/lib/carto/tree/value.js @@ -33,7 +33,7 @@ tree.Value.prototype = { var val = this.ev(env); var v = val.toString(); if(val.is === "color" || val.is === 'uri' || val.is === 'string' || val.is === 'keyword') { - v = "'" + v.replace('&', '&') + "'"; + v = "'" + v.replace('&', '&') + "'"; } else if (Array.isArray(this.value) && this.value.length > 1) { // This covers something like `line-dasharray: 5, 10;` // where the return _value has more than one element.