From d22e7517dd09096095046b2c0358d047e35c19c8 Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Wed, 1 May 2019 13:12:25 +0200 Subject: [PATCH] fix CVE parser --- distbot/plugins/bugtracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distbot/plugins/bugtracker.py b/distbot/plugins/bugtracker.py index ff83dae..d9bc5a2 100644 --- a/distbot/plugins/bugtracker.py +++ b/distbot/plugins/bugtracker.py @@ -45,7 +45,7 @@ class SecurityTracker(Worker): usage = "reacts on CVE-1234 and DSA-1234" def parse_body(self, msg): - tokens = re.findall(r'((DSA|CVE)-\d\d\d\d-\d+)', msg['body'].upper()) + tokens = re.findall(r'((?:DSA|CVE)-\d\d\d\d-\d+)', msg['body'].upper()) if not tokens: return None -- 2.39.5