Skip to content

Commit 3637b1c

Browse files
authored
Merge pull request #1599 from aboutcode-org/correct-cve-regex
Use correct regex for CVE
2 parents 094c2bf + 73f5bda commit 3637b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnerabilities/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
logger = logging.getLogger(__name__)
4141

42-
cve_regex = re.compile(r"CVE-\d{4}-\d{4,7}", re.IGNORECASE)
42+
cve_regex = re.compile(r"CVE-[0-9]{4}-[0-9]{4,19}", re.IGNORECASE)
4343
is_cve = cve_regex.match
4444
find_all_cve = cve_regex.findall
4545

0 commit comments

Comments
 (0)