From c3766767ba9395b527e84420bd9aedbb70fc4c64 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Thu, 24 Sep 2020 17:08:10 +0200 Subject: [PATCH] Remove 2nd layer group from promtime regex --- wmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmn.py b/wmn.py index c37533b..d140071 100644 --- a/wmn.py +++ b/wmn.py @@ -18,7 +18,7 @@ room_pattern = re.compile(r'^[!#]\w+:[\w\-.]+$') # prometheus has to many sub-second digits in their timestamp, # so we get rid of nanoseconds here -promtime_to_isotime_pattern = re.compile(r'([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{6})?)(?:[0-9]{3})?(Z|[+-][0-9]{2}:[0-9]{2})') +promtime_to_isotime_pattern = re.compile(r'([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2})(\.[0-9]{6})?(?:[0-9]{3})?(Z|[+-][0-9]{2}:[0-9]{2})') """ config.yml Example: