Skip to content

Commit 1fe4be7

Browse files
authored
feat: update regex in python checker to match python3.11-3.11.x pattern (#3994)
1 parent c1d18c2 commit 1fe4be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/checkers/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class PythonChecker(Checker):
1919
]
2020
FILENAME_PATTERNS = [r"python"]
2121
VERSION_PATTERNS = [
22-
r"python(?:[23]+\.[0-9])-([23]+\.[0-9]+\.[0-9]+)",
22+
r"python(?:[23]+\.[0-9]+)-([23]+\.[0-9]+\.[0-9]+)",
2323
r"pymalloc_debug\r?\n([23]+\.[0-9]+\.[0-9]+)",
2424
r"([23]+\.[0-9]+\.[0-9]+)\r?\nPython %s",
2525
r"([23]+\.[0-9]+\.[0-9]+)\r?\n%\.80s \(%\.80s\) %\.80s",

0 commit comments

Comments
 (0)