From 615027bba2023d84aa40677c96b7b3d82d102f7e Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 17 Dec 2019 11:10:10 +0100 Subject: [PATCH] chg: [patterns] return all the groups matches and non-matches --- bin/finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/finder.py b/bin/finder.py index 9f94bbc..a23ce51 100644 --- a/bin/finder.py +++ b/bin/finder.py @@ -66,7 +66,7 @@ def find_vuln(commit, pattern=vulnpatterns): print("---", file=sys.stderr) ret = {} ret['commit'] = commit - ret['match'] = m.group(1) + ret['match'] = m.groups() return ret else: return None