We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 094c2bf + 73f5bda commit 3637b1cCopy full SHA for 3637b1c
vulnerabilities/utils.py
@@ -39,7 +39,7 @@
39
40
logger = logging.getLogger(__name__)
41
42
-cve_regex = re.compile(r"CVE-\d{4}-\d{4,7}", re.IGNORECASE)
+cve_regex = re.compile(r"CVE-[0-9]{4}-[0-9]{4,19}", re.IGNORECASE)
43
is_cve = cve_regex.match
44
find_all_cve = cve_regex.findall
45
0 commit comments