chg: [patterns] return all the groups matches and non-matches

This commit is contained in:
Alexandre Dulaunoy 2019-12-17 11:10:10 +01:00
parent 584670daf7
commit 615027bba2
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -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