Graphite: fixed variable quoting when variable value is nummeric, fixes #2078

This commit is contained in:
Torkel Ödegaard
2019-03-22 12:57:07 +01:00
parent 50a10706b0
commit 732ea8eea5
6 changed files with 57 additions and 22 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ export function TemplateSrvStub(this: any) {
this.variables = [];
this.templateSettings = { interpolate: /\[\[([\s\S]+?)\]\]/g };
this.data = {};
this.replace = function(text: string) {
this.replace = (text: string) => {
return _.template(text, this.templateSettings)(this.data);
};
this.init = () => {};