Skip to content

Commit df0398f

Browse files
committed
Update msftidy for the new CVE format
https://cve.mitre.org/cve/identifiers/syntaxchange.html
1 parent 24171a1 commit df0398f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def check_ref_identifiers
176176

177177
case identifier
178178
when 'CVE'
179-
warn("Invalid CVE format: '#{value}'") if value !~ /^\d{4}\-\d{4}$/
179+
warn("Invalid CVE format: '#{value}'") if value !~ /^\d{4}\-\d{4,}$/
180180
when 'OSVDB'
181181
warn("Invalid OSVDB format: '#{value}'") if value !~ /^\d+$/
182182
when 'BID'

0 commit comments

Comments
 (0)