diff --git a/lib/utils.js b/lib/utils.js index 28c8b43e..69c2dcd1 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -143,7 +143,7 @@ function push_uniq(array, el) { } function string_template(text, props) { - return text.replace(/\{([^}]+)\}/g, function(str, p) { + return text.replace(/\{([^{}]+)\}/g, function(str, p) { var value = props[p]; return value instanceof AST_Node ? value.print_to_string() : value; });