mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-03-07 13:56:01 +00:00
internal: fix the tests broken by hardening
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If95a5258a393542564f68b3a1ebc7ff66a6a6964
This commit is contained in:
parent
326cbbc68c
commit
da1fab4257
6 changed files with 17 additions and 17 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
"notashelf.dev/watchdog/internal/config"
|
||||
)
|
||||
|
||||
var prometheusLabelPattern = regexp.MustCompile(`^[a-zA-Z0-9_/:-]*$`)
|
||||
var prometheusLabelPattern = regexp.MustCompile(`^[a-zA-Z0-9_/:.-]*$`)
|
||||
|
||||
// Records analytics events as Prometheus metrics
|
||||
type MetricsAggregator struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue