mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Modified regex used to parse the 'last modified' line of whois assignments files
to allow for the absence of the etag on that line.
This commit is contained in:
parent
017bdb9f51
commit
5a32f584d4
1 changed files with 1 additions and 1 deletions
|
|
@ -1905,7 +1905,7 @@ function requires_updating( file )
|
|||
f:close()
|
||||
if not stamp then return true, nil end
|
||||
|
||||
last_cached, mod, etag = stamp:match( "<([^>]*)><([^>]*)><([^>]*)>" )
|
||||
last_cached, mod, etag = stamp:match( "^<([^>]*)><([^>]*)><?([^>]*)>?$" )
|
||||
|
||||
if not ( last_cached or mod or etag ) then return true, nil end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue