There was an error while loading. Please reload this page.
2 parents 9ff0192 + b5a48a9 commit 525729bCopy full SHA for 525729b
1 file changed
vulnerabilities/helpers.py
@@ -79,7 +79,9 @@ def create_etag(data_src, url, etag_key):
79
return True
80
81
82
-is_cve = re.compile(r"CVE-\d{4}-\d{4,7}", re.IGNORECASE).match
+cve_regex = re.compile(r"CVE-\d{4}-\d{4,7}", re.IGNORECASE)
83
+is_cve = cve_regex.match
84
+find_all_cve = cve_regex.findall
85
86
87
def requests_with_5xx_retry(max_retries=5, backoff_factor=0.5):
0 commit comments