From cfde1a7ed2e364b353d91472148f5350771a615e Mon Sep 17 00:00:00 2001 From: Rick van Drongelen Date: Wed, 4 Jun 2025 16:29:23 +0200 Subject: [PATCH] lint fix --- server/prometheus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/prometheus.js b/server/prometheus.js index 9a5273be4..78d2950f2 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -66,8 +66,8 @@ class Prometheus { sanitizeTags(tags) { return tags.reduce((sanitizedTags, tag) => { let tagText = tag.name; - tagText = tagText.replace(/[^a-zA-Z0-9_]/g, "") - tagText = tagText.replace(/^[^a-zA-Z_]+/, "") + tagText = tagText.replace(/[^a-zA-Z0-9_]/g, ""); + tagText = tagText.replace(/^[^a-zA-Z_]+/, ""); if (tagText !== "") { sanitizedTags.push(tagText);