1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +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:
jah
2011-03-24 12:49:00 +00:00
parent 017bdb9f51
commit 5a32f584d4

View File

@@ -1905,7 +1905,7 @@ function requires_updating( file )
f:close() f:close()
if not stamp then return true, nil end 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 if not ( last_cached or mod or etag ) then return true, nil end