diff --git a/bin/finder.py b/bin/finder.py index 7ac005e..d710c56 100644 --- a/bin/finder.py +++ b/bin/finder.py @@ -83,7 +83,7 @@ def main(): defaultpattern for commit in commits: if isinstance(defaultpattern, typing.Pattern): - ret = find_vuln(commit, pattern=defaultpattern, versbose=args.v) + ret = find_vuln(commit, pattern=defaultpattern, verbose=args.v) if ret: rcommit = ret['commit'] _, potential_vulnerabilities = summary(rcommit, @@ -97,7 +97,7 @@ def main(): found += 1 elif isinstance(defaultpattern, list): for p in defaultpattern: - ret = find_vuln(commit, pattern=p, versbose=args.v) + ret = find_vuln(commit, pattern=p, verbose=args.v) if ret: rcommit = ret['commit'] _, potential_vulnerabilities = summary(rcommit, diff --git a/git_vuln_finder/finder.py b/git_vuln_finder/finder.py index 16ecfb4..3c9be83 100644 --- a/git_vuln_finder/finder.py +++ b/git_vuln_finder/finder.py @@ -78,10 +78,10 @@ def get_patterns(patterns_path=PATTERNS_PATH): return patterns -def find_vuln(commit, pattern, versbose=False): +def find_vuln(commit, pattern, verbose=False): m = pattern.search(commit.message) if m: - if versbose: + if verbose: print("Match found: {}".format(m.group(0)), file=sys.stderr) print(commit.message, file=sys.stderr) print("---", file=sys.stderr)