1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Improve DisclosureDate regex

This commit is contained in:
William Vu 2018-11-16 03:46:51 -06:00
parent 02bb2d45d3
commit a30403dbfe

View File

@ -443,7 +443,7 @@ class Msftidy
if @source =~ /["']DisclosureDate["'].*\=\>[\x0d\x20]*['\"](.+)['\"]/
d = $1 #Captured date
# Flag if overall format is wrong
if d =~ /^... (?:\d{1,2}\,* )*\d{4}/
if d =~ /^... (?:\d{1,2},? )?\d{4}$/
# Flag if month format is wrong
m = d.split[0]
months = [