1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 19:39:07 +00:00

Move string utility functions to stringaux.lua

This commit is contained in:
dmiller
2018-10-18 01:08:19 +00:00
parent 39cfbdf4e2
commit 0500811f5a
140 changed files with 521 additions and 418 deletions

View File

@@ -32,12 +32,12 @@ action = function(host, port)
local capstrings = {}
for cap, args in pairs(capa) do
if ( #args > 0 ) then
table.insert(capstrings, ("%s(%s)"):format(cap, stdnse.strjoin(" ", args)))
table.insert(capstrings, ("%s(%s)"):format(cap, table.concat(args, " ")))
else
table.insert(capstrings, cap)
end
end
return stdnse.strjoin(" ", capstrings)
return table.concat(capstrings, " ")
elseif type(err) == "string" then
stdnse.debug1("'%s' for %s", err, host.ip)
return