Skip to content

Commit f2406d2

Browse files
authored
Escape string pattern for -
1 parent 11e264b commit f2406d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prometheus/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424

2525
local function escape(str)
2626
return str:gsub(".", function(char)
27-
if char:match('[^ -~\n\t\a\b\v\r\"\']') then -- Check if non Printable ASCII Character
27+
if char:match("[^ %-~\n\t\a\b\v\r\"\']") then -- Check if non Printable ASCII Character
2828
return string.format("\\%03d", string.byte(char))
2929
end
3030
if(char == "\\") then

0 commit comments

Comments
 (0)