mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
Improve DisclosureDate regex
This commit is contained in:
parent
02bb2d45d3
commit
a30403dbfe
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user