From: Thorsten S Date: Wed, 1 May 2019 11:12:25 +0000 (+0200) Subject: fix CVE parser X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=d22e7517dd09096095046b2c0358d047e35c19c8;p=urlbot-v3.git fix CVE parser --- 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