mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 20:51:30 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user