Skip to content

Commit

Permalink
fix: update jq checker
Browse files Browse the repository at this point in the history
Update jq pattern to avoid false positives with the following strings:

0.2
jqPzsA

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine committed Aug 29, 2024
1 parent eb8da07 commit c3112c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/jq.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
class JqChecker(Checker):
CONTAINS_PATTERNS: list[str] = []
FILENAME_PATTERNS: list[str] = []
VERSION_PATTERNS = [r"([0-9]+\.[0-9]+)[a-zA-Z0-9:\-\r\n]*jq"]
VERSION_PATTERNS = [r"([0-9]+\.[0-9]+)[a-zA-Z0-9:\-\r\n]*jq[ :]"]
VENDOR_PRODUCT = [("jq_project", "jq"), ("jqlang", "jq")]

0 comments on commit c3112c7

Please sign in to comment.