We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddc3b87 commit a0f7cdaCopy full SHA for a0f7cda
src/prometheus/pipeline.lua
@@ -231,7 +231,7 @@ function Pipeline:renameVariables(ast)
231
generatorFunction = generatorFunction.generateName;
232
end
233
234
- if not self.unparser:isValidIdentifier(self.VarNamePrefix) then
+ if not self.unparser:isValidIdentifier(self.VarNamePrefix) and #self.VarNamePrefix ~= 0 then
235
logger:error(string.format("The Prefix \"%s\" is not a valid Identifier in %s", self.VarNamePrefix, self.LuaVersion));
236
237
@@ -249,4 +249,4 @@ end
249
250
251
252
-return Pipeline;
+return Pipeline;
0 commit comments