diff --git a/git_vuln_finder/vulnerability.py b/git_vuln_finder/vulnerability.py index d1df6d0..326e1fe 100644 --- a/git_vuln_finder/vulnerability.py +++ b/git_vuln_finder/vulnerability.py @@ -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: