From 59e057ea7e9181f99c962066406f9712442eda6d Mon Sep 17 00:00:00 2001 From: Cyberes Date: Mon, 16 Sep 2024 16:01:25 -0600 Subject: [PATCH] update regex on sytemd timer --- check_systemd_timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_systemd_timer.py b/check_systemd_timer.py index 21eef74..7214b9e 100755 --- a/check_systemd_timer.py +++ b/check_systemd_timer.py @@ -17,7 +17,7 @@ sys.path.insert(0, "/usr/lib/python3/dist-packages") import dbus SYSTEMCTL_TIMERS_RE = re.compile( - r'^(([A-Za-z]*\s[0-9]{4}-[0-9]{2}-[0-9]{2}\s*[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*)|n\/a|-)\s*((([0-9]*[a-z]*\s)*left)|n\/a|-)\s*(([A-Za-z]*\s[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*)|n\/a|-)\s*(([0-9A-Za-z\s]*\sago)|n\/a|-)\s*([A-Za-z\-_]*.timer)\s*(([A-Za-z\-_]*.service)|\s*)' + r'^(([A-Za-z]*\s[0-9]{4}-[0-9]{2}-[0-9]{2}\s*[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*)|n\/a|-)\s*((([0-9]*[a-z]*\s)*(?:left)?)|n\/a|-)\s*(([A-Za-z]*\s[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*)|n\/a|-)\s*(([0-9A-Za-z\s]*\sago)|n\/a|-)\s*(.*?\.timer)\s*((.*?\.service)|\s*)' )