merge/resync-2025-09-08 #7

Merged
ahuston-0 merged 57 commits from merge/resync-2025-09-08 into add-gitea-pulls 2025-09-07 23:41:45 -04:00
Showing only changes of commit 8f3fdc14d8 - Show all commits

View File

@@ -149,6 +149,8 @@ BuildOutput getBuildOutput(
metric.name = fields[0];
metric.value = atof(fields[1].c_str()); // FIXME
metric.unit = fields.size() >= 3 ? fields[2] : "";
if (!std::regex_match(metric.unit, std::regex("[a-zA-Z0-9._%-]+")))
metric.unit = "";
res.metrics[metric.name] = metric;
}
}