]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix CVE parser
authorThorsten S <mail@aero2k.de>
Wed, 1 May 2019 11:12:25 +0000 (13:12 +0200)
committerThorsten S <mail@aero2k.de>
Wed, 1 May 2019 11:12:25 +0000 (13:12 +0200)
distbot/plugins/bugtracker.py

index ff83dae9705c1b677d5e1d5bf2d9866e67e863c2..d9bc5a21b983a1f95742bf9a80e816d2bfbb36da 100644 (file)
@@ -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