diff --git a/test/lib/prometheus.js b/test/lib/prometheus.js index ade1b09f..8ef24147 100644 --- a/test/lib/prometheus.js +++ b/test/lib/prometheus.js @@ -653,12 +653,11 @@ describe("lib/prometheus", function() { ); let labelValue = ""; + // Include every ASCII codepoint for (let i = 0; i < 128; i++) { - const char = String.fromCodePoint(i); - if (!/[1-9B-Zb-z]/.test(char)) { // exclude boring characters - labelValue += char; - } + labelValue += String.fromCodePoint(i); } + // Include Unicode codepoints from the basic and supplementary planes. labelValue += "©💣"; gauge.labels(labelValue, "2");