mirror of
https://github.com/cve-search/git-vuln-finder.git
synced 2024-11-22 14:57:20 +00:00
added a simple comment
This commit is contained in:
parent
1460433429
commit
30af30f571
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ from langdetect import detect as langdetect
|
|||
|
||||
|
||||
def find_vuln(commit, pattern, verbose=False):
|
||||
"""Find a potential vulnerability from a commit message thanks to a regex
|
||||
pattern.
|
||||
"""
|
||||
m = pattern.search(commit.message)
|
||||
if m:
|
||||
if verbose:
|
||||
|
|
Loading…
Reference in a new issue