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 06aec95 commit ddc3b87Copy full SHA for ddc3b87
src/prometheus/unparser.lua
@@ -58,7 +58,7 @@ function Unparser:isValidIdentifier(source)
58
if(string.find(source, self.numberPattern)) then
59
return false;
60
end
61
- return true;
+ return #source > 0;
62
63
64
function Unparser:setPrettyPrint(prettyPrint)
@@ -821,4 +821,4 @@ function Unparser:unparseExpression(expression, tabbing)
821
error(string.format("\"%s\" is not a valid unparseable expression", expression.kind));
822
823
824
-return Unparser
+return Unparser
0 commit comments