This commit is contained in:
Rick van Drongelen 2025-06-04 16:29:23 +02:00
parent e61ba524d7
commit cfde1a7ed2
No known key found for this signature in database

View file

@ -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);